/* ============================================
   KAMIS STUDIO — Global Styles
   Dark Luxury AI Creative Studio
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg: #0A0A0A;
  --bg-card: #111111;
  --text: #FFFFFF;
  --text-secondary: #888888;
  --accent: #00FF6A;
  --accent-dim: rgba(0, 255, 106, 0.15);

  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-height: 72px;
  --section-pad: clamp(48px, 8vw, 100px);
  --side-pad: clamp(20px, 5vw, 80px);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
}

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

/* ---------- Performance: GPU acceleration for animated elements ---------- */
.hero-bg img,
.vcr-fullscreen-img img,
.portfolio-card-img img,
.journal-card-img img,
.testimonial-image img {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.vcr-slide,
.portfolio-card,
.journal-card,
.service-card {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

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

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================
   PAGE LOADER
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: loaderPulse 1.2s ease-in-out infinite alternate;
}

@keyframes loaderPulse {
  0%   { opacity: 0.2; }
  100% { opacity: 1; }
}

/* ============================================
   CUSTOM CURSOR (desktop only)
   ============================================ */
.cursor,
.cursor-follower {
  display: none;
}

@media (pointer: fine) {
  body {
    cursor: none;
  }

  a, button, .portfolio-card, .journal-card, .cta-button, .nav-hamburger {
    cursor: none;
  }

  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                background 0.3s;
    mix-blend-mode: difference;
  }

  .cursor.hovering {
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 106, 0.25);
  }

  .cursor-follower {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out-expo),
                height 0.4s var(--ease-out-expo),
                border-color 0.3s;
  }

  .cursor-follower.hovering {
    width: 64px;
    height: 64px;
    border-color: var(--accent);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side-pad);
  height: var(--nav-height);
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav.nav-hidden {
  transform: translateY(-100%);
}

/* Hide KAMIS STUDIO logo badge when scrolled */
.nav.scrolled .nav-logo {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s var(--ease-out-expo);
}

.nav-links {
  display: none;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
    gap: 36px;
  }

  .nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out-expo);
  }

  .nav-links a:hover {
    color: var(--text);
  }

  .nav-links a:hover::after {
    width: 100%;
  }
}

.nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .nav-cta {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--accent);
    padding: 10px 24px;
    border-radius: 100px;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
  }

  .nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(0, 255, 106, 0.3);
  }
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
  transform-origin: center;
}

.nav-hamburger.active span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav-hamburger.active span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

@media (min-width: 900px) {
  .nav-hamburger {
    display: none;
  }
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--side-pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links a {
  font-family: var(--font-heading);
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), color 0.3s;
}

.mobile-nav.open .mobile-nav-links a {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.mobile-nav.open .mobile-nav-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open .mobile-nav-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open .mobile-nav-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open .mobile-nav-links a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.open .mobile-nav-links a:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav-links a::before {
  content: attr(data-index);
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  color: var(--accent);
}

.mobile-nav-footer {
  margin-top: 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo) 0.35s, transform 0.5s var(--ease-out-expo) 0.35s;
}

.mobile-nav.open .mobile-nav-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-footer a {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--text-secondary);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.mobile-nav-footer a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  clip-path: inset(0 100% 0 0);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Reveal text animation helper */
.reveal-text .word {
  display: inline-block;
  overflow: hidden;
}

.reveal-text .word-inner {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.7s var(--ease-out-expo);
}

.reveal-text.revealed .word-inner {
  transform: translateY(0);
}

/* ============================================
   1. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--side-pad);
  padding-bottom: clamp(60px, 10vh, 120px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #0A0A0A 0%,
    #1a1a2e 30%,
    #16213e 50%,
    #0f3460 70%,
    #0A0A0A 100%
  );
  background-size: 200% 200%;
  animation: heroGradientShift 12s ease-in-out infinite;
}

@keyframes heroGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.5) 40%,
    rgba(10, 10, 10, 0.2) 70%,
    rgba(10, 10, 10, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(40px, 10vw, 120px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.hero-sub {
  margin-top: clamp(20px, 3vw, 40px);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(20px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  right: var(--side-pad);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  writing-mode: vertical-lr;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLineMove 1.5s ease-in-out infinite;
}

@keyframes scrollLineMove {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ============================================
   2. SHOWREEL SECTION
   ============================================ */
.showreel {
  position: relative;
  padding: 40px var(--side-pad);
  overflow: hidden;
  background: var(--bg);
}

.showreel-video-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
}

.showreel-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  vertical-align: top;
}

@media (max-width: 768px) {
  .showreel {
    padding: 24px var(--side-pad);
  }
}

.showreel-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    160deg,
    #111 0%,
    #1a1a1a 40%,
    #222 60%,
    #111 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.showreel-placeholder-text {
  font-family: var(--font-heading);
  font-size: clamp(24px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
}


/* ============================================
   VISION / CRAFT / RESULT PANELS
   ============================================ */

/* --- VCR Sequence — single pinned container --- */
.vcr-sequence {
  position: relative;
  width: 100%;
}

.vcr-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Each slide stacks on top of each other */
.vcr-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}

/* First slide starts visible */
.vcr-slide[data-slide="0"] {
  opacity: 1;
  visibility: visible;
}

.vcr-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.55) 0%,
    rgba(10,10,10,0.15) 35%,
    rgba(10,10,10,0.15) 65%,
    rgba(10,10,10,0.55) 100%
  );
  pointer-events: none;
}

.vcr-content {
  position: absolute;
  z-index: 3;
  text-align: center;
  width: 100%;
  padding: 0 var(--side-pad);
  pointer-events: none;
}

.vcr-heading {
  font-family: var(--font-heading);
  font-size: clamp(72px, 22vw, 280px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.08);
  -webkit-text-stroke: 2px rgba(255,255,255,0.6);
  text-shadow: 0 0 80px rgba(255,255,255,0.1);
  opacity: 0;
  transform: translateY(50px);
}

/* --- Fullscreen image --- */
.vcr-fullscreen-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.vcr-fullscreen-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.08);
}

/* CRAFT white-bg image: contain */
.vcr-slide-craft .vcr-fullscreen-img {
  background: #f5f5f5;
}

.vcr-slide-craft .vcr-fullscreen-img img {
  object-fit: contain;
  object-position: center center;
}

/* Caption text on result slides */
.vcr-result-caption {
  position: absolute;
  z-index: 3;
  bottom: 10vh;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

.vcr-result-caption span {
  font-family: var(--font-heading);
  font-size: clamp(36px, 10vw, 110px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  opacity: 0;
  display: inline-block;
  transform: translateY(40px);
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

/* --- Mobile improvements for VCR --- */
@media (max-width: 768px) {
  .vcr-heading {
    font-size: clamp(42px, 14vw, 100px);
    font-weight: 700;
    color: rgba(255,255,255,0.12);
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.7);
    text-shadow: none;
  }

  .vcr-result-caption span {
    font-size: clamp(24px, 9vw, 60px);
    font-weight: 700;
  }

  .vcr-fullscreen-img img {
    object-position: center center;
  }

  .vcr-slide[data-slide="0"] .vcr-fullscreen-img {
    background: #d9d9d9;
  }

  .vcr-slide[data-slide="0"] .vcr-fullscreen-img img {
    object-fit: contain;
    object-position: center center;
  }

  .vcr-content {
    padding: 0 20px;
  }
}

/* ============================================
   3. WORK / PORTFOLIO
   ============================================ */
.work {
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.section-header {
  padding: 0 var(--side-pad);
  margin-bottom: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
}

.section-header .section-title {
  max-width: 600px;
}

/* --- Horizontal Scroll Track (Desktop) --- */
.portfolio-track-wrap {
  display: none;
  overflow: hidden;
}

@media (min-width: 769px) {
  .portfolio-track-wrap {
    display: block;
  }

  .portfolio-grid {
    display: none !important;
  }
}

.portfolio-track {
  display: flex;
  gap: 32px;
  padding: 0 var(--side-pad);
  width: max-content;
  will-change: transform;
}

.portfolio-card {
  flex-shrink: 0;
  width: clamp(320px, 30vw, 500px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.5s var(--ease-out-expo);
}

@media (pointer: fine) {
  .portfolio-card:hover {
    transform: scale(1.02);
  }

  .portfolio-card:hover .portfolio-card-img .portfolio-img-placeholder,
  .portfolio-card:hover .portfolio-card-img img {
    transform: scale(1.05);
    filter: brightness(1.1);
  }
}

.portfolio-card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.portfolio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease-out-expo), filter 0.6s;
}

.portfolio-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    hsl(var(--ph-hue, 200), 20%, 10%) 0%,
    hsl(var(--ph-hue, 200), 30%, 18%) 50%,
    hsl(var(--ph-hue, 200), 20%, 8%) 100%
  );
  transition: transform 0.6s var(--ease-out-expo), filter 0.6s;
}

.portfolio-card-info {
  padding: 20px 24px;
}

.portfolio-card-info h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.portfolio-card-info span {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Masonry Grid (Mobile/Tablet) --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 var(--side-pad);
}

@media (min-width: 480px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portfolio-grid-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  opacity: 0;
  transform: translateY(40px);
}

.portfolio-grid-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.portfolio-grid-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.portfolio-grid-item.tall .portfolio-grid-img {
  aspect-ratio: 3 / 5;
}

.portfolio-grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 769px) {
  .portfolio-grid {
    display: none;
  }
}

/* ============================================
   4. ABOUT / PHILOSOPHY
   ============================================ */
.about {
  padding: var(--section-pad) var(--side-pad);
  display: flex;
  align-items: center;
}

.about-inner {
  max-width: 900px;
}

.about-statement {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  font-style: italic;
}

.about-desc {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 40px;
}

.about-stats {
  display: flex;
  gap: clamp(32px, 5vw, 80px);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* ============================================
   5. SERVICES
   ============================================ */
.services {
  padding: var(--section-pad) var(--side-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services-inner .section-title {
  margin-bottom: clamp(40px, 6vw, 80px);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo),
              border-color 0.4s, background 0.4s;
}

@media (pointer: fine) {
  .service-card:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-4px) !important;
  }
}

.service-icon {
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================
   6. TESTIMONIAL
   ============================================ */
.testimonial {
  padding: var(--section-pad) var(--side-pad);
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .testimonial-inner {
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
  }
}

.testimonial-image {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  max-height: 500px;
}

.testimonial-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #1a1a1a 0%,
    #2a2a2a 50%,
    #1a1a1a 100%
  );
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.testimonial-quote em {
  color: var(--accent);
  font-style: italic;
}

.testimonial-author {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   7. JOURNAL
   ============================================ */
.journal {
  padding: var(--section-pad) var(--side-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.journal-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.journal-inner .section-title {
  margin-bottom: clamp(40px, 6vw, 60px);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .journal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.journal-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.5s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(30px);
}

.journal-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

@media (pointer: fine) {
  .journal-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
  }

  .journal-card:hover .journal-card-img .journal-img-placeholder,
  .journal-card:hover .journal-card-img img {
    transform: scale(1.05);
  }
}

.journal-card-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.journal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.journal-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    hsl(var(--ph-hue, 200), 15%, 12%) 0%,
    hsl(var(--ph-hue, 200), 25%, 20%) 50%,
    hsl(var(--ph-hue, 200), 15%, 10%) 100%
  );
  transition: transform 0.6s var(--ease-out-expo);
}

.journal-card-info {
  padding: 20px 24px;
}

.journal-date {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.journal-card-info h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

/* ============================================
   8. CONTACT / CTA
   ============================================ */
.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-pad) var(--side-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.contact-email {
  font-family: var(--font-heading);
  font-size: clamp(24px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s;
  position: relative;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
}

.contact-email:hover {
  color: var(--accent);
}

.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 48px;
  border-radius: 100px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background 0.4s var(--ease-out-expo),
              color 0.4s var(--ease-out-expo),
              transform 0.3s var(--ease-out-expo),
              box-shadow 0.4s;
}

.cta-button:hover {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 255, 106, 0.25);
}

.cta-button:active {
  transform: scale(0.97);
}

/* ============================================
   9. FOOTER
   ============================================ */
.footer {
  padding: clamp(40px, 6vw, 80px) var(--side-pad) 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-socials,
.footer-menu {
  display: flex;
  flex-direction: column;
}

.footer-socials a,
.footer-menu a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-socials a:hover,
.footer-menu a:hover {
  color: var(--text);
}

/* Giant Brand Name */
.footer-brand {
  overflow: hidden;
  margin-bottom: 40px;
}

.footer-brand span {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(80px, 20vw, 300px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  user-select: none;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom span {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ============================================
   UTILITY & RESPONSIVE REFINEMENTS
   ============================================ */

/* Mobile tap feedback */
@media (pointer: coarse) {
  .portfolio-grid-item:active,
  .journal-card:active,
  .service-card:active,
  .cta-button:active {
    transform: scale(0.97) !important;
    transition-duration: 0.15s !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Image expand overlay (for grid morph on tap/click) */
.image-expand-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
  cursor: pointer;
}

.image-expand-overlay.active {
  opacity: 1;
  visibility: visible;
}

.image-expand-overlay .expanded-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.5s var(--ease-out-expo);
}

.image-expand-overlay.active .expanded-img {
  transform: scale(1);
}

/* Horizontal scroll bar hide */
.portfolio-track-wrap::-webkit-scrollbar {
  display: none;
}
.portfolio-track-wrap {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================
   DESKTOP ENHANCEMENTS — min-width: 1024px
   All rules scoped to desktop only.
   Mobile CSS is completely untouched.
   ============================================ */
@media (min-width: 1024px) {

  /* ------------------------------------------
     GENERAL SPACING & CONTAINERS
  ------------------------------------------ */
  .section-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .section-title {
    font-size: clamp(2.8rem, 5vw, 5rem);
  }

  /* ------------------------------------------
     1. NAVIGATION
  ------------------------------------------ */
  .nav {
    padding: 0 60px;
    height: 80px;
  }

  .nav-logo {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.22em;
  }

  .nav-links {
    gap: 48px;
  }

  .nav-links a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .nav-cta {
    padding: 12px 32px;
    border-radius: 2px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  /* ------------------------------------------
     2. HERO SECTION
  ------------------------------------------ */
  .hero {
    padding: 0 60px 80px;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .hero-headline {
    font-size: clamp(5rem, 9vw, 10rem);
    line-height: 0.95;
    max-width: 900px;
  }

  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(10,10,10,0.85) 0%,
      rgba(10,10,10,0.3) 35%,
      rgba(10,10,10,0.08) 65%,
      rgba(10,10,10,0.2) 100%
    );
  }

  /* ------------------------------------------
     3. PORTFOLIO / WORK
  ------------------------------------------ */
  .portfolio-track {
    padding: 0 60px;
    gap: 24px;
  }

  .portfolio-card {
    width: 480px;
    min-width: 480px;
  }

  .portfolio-card-img {
    height: 580px;
    aspect-ratio: unset;
  }

  .portfolio-card-info {
    padding: 24px;
  }

  .portfolio-card-info h3 {
    font-size: 1.4rem;
  }

  /* ------------------------------------------
     4. VCR — VISION / CRAFT / RESULT
  ------------------------------------------ */
  .vcr-heading {
    font-size: clamp(7rem, 13vw, 17rem);
    color: rgba(255,255,255,0.07);
    -webkit-text-stroke: 2px rgba(255,255,255,0.75);
  }

  .vcr-content {
    text-align: center;
    width: 100%;
    padding: 0 80px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }

  .vcr-result-caption {
    bottom: 14vh;
  }

  .vcr-result-caption span {
    font-size: clamp(3.5rem, 6vw, 8rem);
  }

  .vcr-fullscreen-img img {
    object-fit: cover;
    object-position: center center;
  }

  .vcr-slide-craft .vcr-fullscreen-img img {
    object-fit: contain;
    object-position: center center;
  }

  /* ------------------------------------------
     5. ABOUT / PHILOSOPHY
  ------------------------------------------ */
  .about {
    padding: 140px 60px;
  }

  .about-inner {
    max-width: 1000px;
  }

  .about-statement {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.1;
  }

  .about-stats {
    gap: 80px;
    flex-wrap: nowrap;
  }

  .stat-number {
    font-size: 3.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  /* ------------------------------------------
     6. SERVICES
  ------------------------------------------ */
  .services {
    padding: 120px 60px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .service-card {
    padding: 56px 48px;
    min-height: 360px;
    border-radius: 0;
    border-color: rgba(255,255,255,0.06);
    position: relative;
  }

  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
  }

  .service-card:hover::before {
    transform: scaleX(1);
  }

  .service-card h3 {
    font-size: 1.5rem;
  }

  .service-card p {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  /* ------------------------------------------
     7. TESTIMONIAL
  ------------------------------------------ */
  .testimonial {
    padding: 120px 60px;
  }

  .testimonial-inner {
    grid-template-columns: 45fr 55fr;
    gap: 0;
  }

  .testimonial-image {
    height: 560px;
    max-height: 560px;
    aspect-ratio: unset;
    border-radius: 12px 0 0 12px;
  }

  .testimonial-content {
    padding: 80px;
  }

  .testimonial-quote {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    line-height: 1.35;
  }

  /* ------------------------------------------
     8. JOURNAL
  ------------------------------------------ */
  .journal {
    padding: 120px 60px;
  }

  .journal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .journal-card-img {
    height: 380px;
    aspect-ratio: unset;
  }

  .journal-card-info {
    padding: 24px 0;
  }

  .journal-card-info h3 {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  /* ------------------------------------------
     9. CONTACT SECTION
  ------------------------------------------ */
  .contact {
    padding: 160px 60px;
  }

  .contact-email {
    font-size: clamp(3rem, 6vw, 7rem);
  }

  .cta-button {
    font-size: 1rem;
    padding: 18px 56px;
  }

  /* ------------------------------------------
     10. FOOTER
  ------------------------------------------ */
  .footer {
    padding: 60px 60px 32px;
  }

  .footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
  }

  .footer-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .footer-col a,
  .footer-socials a,
  .footer-menu a {
    font-size: 13px;
    line-height: 2;
    margin-bottom: 0;
  }

  /* ------------------------------------------
     11. GENERAL SECTION PADDING
  ------------------------------------------ */
  .work {
    padding: 120px 0;
  }

  .section-header {
    padding: 0 60px;
  }

  .about,
  .services,
  .testimonial,
  .journal,
  .contact {
    min-width: 0;
  }

  .services-inner,
  .journal-inner {
    max-width: 1280px;
    margin: 0 auto;
  }

  .testimonial-inner {
    max-width: 1280px;
  }

}
