/* =====================================================
   PORTFOLIO · COZY GHIBLI STUDIO THEME
   Palette: Grays (Abu), White (Putih), and #8B612D (Oak Brown)
   Atmosphere: 3D Cozy Room, warm sunlight, gentle dust motes
   ===================================================== */

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

:root {
  /* User requested palette: Abu, Putih, #8B612D */
  --accent: #8B612D;
  --accent-light: #ab7b3e;
  --accent-dark: #6e491c;
  --accent-soft: rgba(139, 97, 45, 0.08);
  --accent-border: rgba(139, 97, 45, 0.22);
  --accent-glow: rgba(139, 97, 45, 0.28);

  /* Whites (Putih) */
  --white: #ffffff;
  --bg-page: #f9fafb;
  --bg-card: #ffffff;

  /* Grays (Abu) */
  --gray-50: #f8fafc;
  --gray-100: #f1f4f8;
  --gray-200: #e2e7ee;
  --gray-300: #cbd3de;
  --gray-400: #93a0b2;
  --gray-500: #5d6778;
  --gray-600: #475161;
  --gray-700: #333d4b;
  --gray-800: #242c38;
  --gray-900: #1a1f28;

  --text: var(--gray-900);
  --text-muted: var(--gray-500);
  --text-light: var(--gray-400);
  --border: var(--gray-200);
  --border-light: rgba(226, 231, 238, 0.7);

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Easing curves */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background: transparent;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #c28b48);
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* === GHIBLI COZY ROOM 3D BACKGROUND LAYER === */
.ghibli-ambient-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.ghibli-art-backdrop {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.14;
  filter: saturate(1.15) contrast(0.98);
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.ghibli-video-backdrop {
  position: absolute;
  inset: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  object-fit: cover;
  object-position: center 36%;
  opacity: 1; /* Full video initially when page opens */
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
  pointer-events: none;
}

.ghibli-sunbeam-cone {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 110%;
  height: 110%;
  background: radial-gradient(
    ellipse 65% 50% at 20% 25%,
    rgba(255, 235, 195, 0.22) 0%,
    rgba(255, 220, 160, 0.08) 45%,
    transparent 75%
  );
  pointer-events: none;
}

#roomCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ghibli-soft-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 75% at 50% 45%,
    transparent 50%,
    rgba(249, 250, 251, 0.45) 85%,
    rgba(249, 250, 251, 0.70) 100%
  );
  opacity: 0.15; /* Soft transparent vignette initially so full room is crystal clear */
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
  pointer-events: none;
}

/* Scrolled Studio Mode (Mode kaya sekarang) */
body.is-docked-mode .ghibli-video-backdrop {
  opacity: 0.60; /* Ambient backdrop for text reading with high clarity */
}

body.is-docked-mode .ghibli-soft-vignette {
  opacity: 0.50; /* Soft contrast without blocking the view */
}

/* === DUST MOTES (DOM PARTICLES) === */
.dust-motes-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.dust-mote {
  position: absolute;
  border-radius: 50%;
  background: rgba(212, 163, 89, 0.6);
  box-shadow: 0 0 6px rgba(255, 225, 160, 0.8);
  animation: floatMote linear infinite;
}

@keyframes floatMote {
  0% {
    opacity: 0;
    transform: translateY(105vh) translateX(0) scale(0.5);
  }
  15% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) translateX(60px) scale(1.1);
  }
}

/* === CUSTOM PRECISION CURSOR === */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10002;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  opacity: 0.45;
  transition: width 0.25s var(--ease-spring), height 0.25s var(--ease-spring), border-color 0.2s, background 0.2s, opacity 0.2s;
}

.cursor-ring.hovered {
  width: 52px;
  height: 52px;
  border-color: var(--accent-light);
  background: var(--accent-soft);
  opacity: 0.9;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(circle, rgba(139, 97, 45, 0.08) 0%, rgba(212, 163, 89, 0.02) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  will-change: transform;
}

@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring, .cursor-glow { display: none !important; }
}

/* === PRELOADER === */
html.instant-view .preloader {
  display: none !important;
}

html.instant-view [data-scroll] {
  opacity: 1 !important;
  transform: none !important;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.75s var(--ease), visibility 0.75s;
}

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

.preloader-inner {
  text-align: center;
}

.preloader-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeIn 0.4s 0.1s forwards;
}

.preloader-letters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.preloader-letters span {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gray-900);
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotateX(45deg);
  animation: letterReveal 0.5s var(--ease-out) forwards;
}

.preloader-letters span:nth-child(1) { animation-delay: 0.1s; }
.preloader-letters span:nth-child(2) { animation-delay: 0.18s; }
.preloader-letters span:nth-child(3) { animation-delay: 0.26s; }
.preloader-letters span:nth-child(4) { animation-delay: 0.34s; }
.preloader-letters span:nth-child(5) { animation-delay: 0.42s; }
.preloader-letters span:nth-child(6) { animation-delay: 0.5s; }

@keyframes letterReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.preloader-line {
  width: 180px;
  height: 2px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 14px;
}

.preloader-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  animation: preloaderFill 1.4s var(--ease-out) 0.3s forwards;
}

@keyframes preloaderFill { to { width: 100%; } }

.preloader-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  opacity: 0;
  animation: fadeIn 0.4s 0.6s forwards;
}

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

/* === HEADER / NAVIGATION === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 52px);
  padding-top: max(20px, env(safe-area-inset-top));
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
  box-sizing: border-box;
  width: 100%;
}

/* === TOP / FULL VIDEO / FIRST VIEWPORT HEADER (PURE WHITE TEXT) === */
.header .header-name {
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 2.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.9) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 64px);
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s, text-shadow 0.3s;
}

.header .header-dot {
  width: 8px;
  height: 8px;
  background: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9) !important;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.header .header-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  flex-shrink: 0;
}

.header .header-nav a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.85) !important;
  position: relative;
  transition: color 0.3s, text-shadow 0.3s;
  padding: 6px 0;
}

.header .header-nav a:not(.nav-contact-btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  transition: width 0.35s var(--ease-spring), background 0.3s;
  border-radius: 2px;
}

.header .header-nav a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 16px rgba(255, 255, 255, 1) !important;
}

.header .header-nav a:not(.nav-contact-btn):hover::after {
  width: 100%;
}

.header .header-burger span {
  width: 24px;
  height: 2px;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
  transition: transform 0.35s var(--ease-spring), opacity 0.3s, background 0.3s;
  border-radius: 2px;
}

/* Explicit fallback for un-scrolled header */
.header:not(.scrolled) .header-name {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.header:not(.scrolled) .header-dot {
  background: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9) !important;
}

.header:not(.scrolled) .header-nav a {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.85) !important;
}

.header:not(.scrolled) .header-nav a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 16px rgba(255, 255, 255, 1) !important;
}

.header:not(.scrolled) .header-nav a:not(.nav-contact-btn)::after {
  background: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.header:not(.scrolled) .header-burger span {
  background: #ffffff !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.7) !important;
}

/* === SCROLLED STICKY HEADER (Frosted White Glass + Dark Charcoal Text) === */
.header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--gray-200);
  box-shadow: 0 4px 20px rgba(26, 31, 40, 0.06);
  padding: 12px clamp(16px, 3.5vw, 52px);
  padding-top: max(12px, env(safe-area-inset-top));
  will-change: transform;
}

.header.scrolled .header-name {
  color: var(--gray-900) !important;
  text-shadow: none !important;
}

.header.scrolled .header-dot {
  background: var(--accent) !important;
  box-shadow: none !important;
}

.header.scrolled .header-nav a:not(.nav-contact-btn) {
  color: var(--gray-600) !important;
  text-shadow: none !important;
}

.header.scrolled .header-nav a:not(.nav-contact-btn):hover {
  color: var(--accent) !important;
  text-shadow: none !important;
}

.header.scrolled .header-nav a:not(.nav-contact-btn)::after {
  background: var(--accent) !important;
  box-shadow: none !important;
}

.header.scrolled .header-burger span {
  background: var(--gray-900) !important;
  box-shadow: none !important;
}

/* === REACH OUT BUTTON (ALWAYS PURE WHITE TEXT ON BROWN BACKGROUND) === */
.header .header-nav a.nav-contact-btn,
.header.scrolled .header-nav a.nav-contact-btn,
.header:not(.scrolled) .header-nav a.nav-contact-btn,
.nav-contact-btn {
  padding: 8px 22px !important;
  background: var(--accent) !important;
  color: #ffffff !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(139, 97, 45, 0.25) !important;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s !important;
}

.header .header-nav a.nav-contact-btn:hover,
.header.scrolled .header-nav a.nav-contact-btn:hover,
.header:not(.scrolled) .header-nav a.nav-contact-btn:hover,
.nav-contact-btn:hover {
  background: var(--accent-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px var(--accent-glow) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

.header-burger {
  display: none !important;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.header-burger span {
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  transition: transform 0.35s var(--ease-spring), opacity 0.3s;
  border-radius: 2px;
}

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

/* Force dark contrast on burger and logo when menu is open */
.header .header-burger.active,
.header:not(.scrolled) .header-burger.active,
.header.scrolled .header-burger.active {
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
}

.header .header-burger.active span,
.header:not(.scrolled) .header-burger.active span,
.header.scrolled .header-burger.active span {
  background: var(--gray-900) !important;
  box-shadow: none !important;
}

body.mob-menu-open {
  overflow: hidden !important;
}

body.mob-menu-open .header .header-name,
.header:has(.header-burger.active) .header-name {
  color: var(--gray-900) !important;
  text-shadow: none !important;
}

body.mob-menu-open .header .header-dot,
.header:has(.header-burger.active) .header-dot {
  background: var(--accent) !important;
  box-shadow: none !important;
}

body.mob-menu-open .audio-floating-widget {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.mob-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px calc(40px + env(safe-area-inset-bottom, 0px));
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.mob-nav a {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  font-weight: 500;
  color: var(--gray-900);
  padding: 10px 24px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
  transition: color 0.25s, transform 0.25s, background 0.25s;
}

.mob-nav a:hover,
.mob-nav a:active {
  color: var(--accent);
  background: rgba(139, 97, 45, 0.08);
  transform: translateY(-2px);
}

/* === CINEMATIC FULL VIDEO INTRO (INITIAL VIEWPORT) === */
.cinematic-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  box-sizing: border-box;
}

.cinematic-inner {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.cinematic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 2.3vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(139, 97, 45, 0.28);
  padding: 6px clamp(12px, 2.5vw, 18px);
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  max-width: calc(100vw - 36px);
  box-sizing: border-box;
}

.cinematic-badge-leaf {
  font-size: 0.92rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-block;
}

.cinematic-badge span:not(.cinematic-badge-leaf) {
  white-space: nowrap;
  line-height: 1.2;
}

.cinematic-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.85), 0 4px 30px rgba(0, 0, 0, 0.08);
}

.cinematic-title em {
  font-style: italic;
  color: var(--accent);
}

.cinematic-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 500;
  color: var(--gray-800);
  letter-spacing: 0.01em;
  max-width: 640px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 24px;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.cinematic-actions {
  margin-top: 14px;
}

.cinematic-scroll-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--gray-900);
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(139, 97, 45, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.35s var(--ease-spring);
  cursor: pointer;
}

.cinematic-scroll-pill:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 34px rgba(139, 97, 45, 0.35);
}

.scroll-pill-mouse {
  width: 18px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 4px;
  box-sizing: border-box;
}

.scroll-pill-wheel {
  width: 3px;
  height: 6px;
  background: currentColor;
  border-radius: 2px;
  animation: mouseWheelMove 1.6s ease-in-out infinite;
}

@keyframes mouseWheelMove {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.scroll-pill-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
  animation: bounceDown 1.8s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* === FLOATING GHIBLI AUDIO WIDGET === */
.audio-floating-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
}

.audio-floating-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--gray-800);
  border: 1px solid rgba(139, 97, 45, 0.28);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9);
  transition: all 0.35s var(--ease-spring);
  user-select: none;
}

.audio-floating-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(139, 97, 45, 0.35);
}

.af-icon {
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.af-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.af-bars span {
  width: 2.5px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.2s ease, background 0.3s;
}

.audio-floating-btn:hover .af-bars span {
  background: #ffffff;
}

/* When playing, animate equalizer bars */
.audio-floating-widget.playing .af-bars span:nth-child(1) {
  animation: afBarWave 1.1s ease-in-out infinite alternate;
}
.audio-floating-widget.playing .af-bars span:nth-child(2) {
  animation: afBarWave 0.8s ease-in-out infinite alternate 0.15s;
}
.audio-floating-widget.playing .af-bars span:nth-child(3) {
  animation: afBarWave 1.3s ease-in-out infinite alternate 0.3s;
}
.audio-floating-widget.playing .af-bars span:nth-child(4) {
  animation: afBarWave 0.95s ease-in-out infinite alternate 0.05s;
}

@keyframes afBarWave {
  0% { height: 4px; }
  100% { height: 14px; }
}

@media (max-width: 600px) {
  .audio-floating-widget {
    bottom: 16px;
    left: 16px;
  }
  .audio-floating-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}

/* === HERO SECTION === */
.hero {
  position: relative;
  z-index: 2;
  min-height: clamp(640px, 100vh, 960px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 52px 60px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.eyebrow-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--accent-border);
  white-space: nowrap;
}

.eyebrow-text {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--gray-500);
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.hero-line {
  display: block;
}

.hero-line-serif em {
  font-style: italic;
  color: var(--accent);
}

.hero-body {
  font-size: 1.08rem;
  color: var(--gray-800);
  line-height: 1.85;
  max-width: 580px;
  margin-bottom: 36px;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Primary Button in #8B612D */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: background 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 97, 45, 0.4);
}

.btn-icon {
  transition: transform 0.3s var(--ease-spring);
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

/* Secondary Button in Gray/White */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: var(--gray-700);
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s var(--ease-spring);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-900);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Hero Numbers Block */
.hero-numbers {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.num-block {
  display: flex;
  flex-direction: column;
}

.num-val {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}

.num-plus, .num-unit {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent-light);
  margin-left: 2px;
}

.num-lbl {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-top: 6px;
}

.num-sep {
  width: 1px;
  height: 38px;
  background: var(--gray-200);
}

/* === HERO PHOTO CARD === */
.hero-col-photo {
  position: relative;
}

.photo-card {
  position: relative;
  border-radius: 24px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  box-shadow: 0 24px 60px rgba(35, 40, 50, 0.08), 0 4px 16px rgba(35, 40, 50, 0.03);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}

.photo-card:hover {
  box-shadow: 0 32px 80px rgba(139, 97, 45, 0.15), 0 8px 24px rgba(35, 40, 50, 0.05);
}

.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #f2efe9 0%, #e5dfd5 100%);
  border: 1px solid var(--accent-border);
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.8s var(--ease);
}

.photo-card:hover .photo-img {
  transform: scale(1.04);
}

.photo-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}

.photo-card:hover .photo-shimmer {
  animation: shimmerSweep 1s ease-in-out;
}

@keyframes shimmerSweep {
  to { transform: translateX(100%); }
}

.photo-tag {
  position: absolute;
  z-index: 4;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-tag-top {
  top: 28px;
  right: -16px;
}

.photo-tag-bottom {
  bottom: 32px;
  left: -16px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.photo-corner-accent {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 28px;
  height: 28px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
  border-top-left-radius: 10px;
  pointer-events: none;
}

/* Scroll Cue */
.hero-scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  color: var(--gray-500);
  font-size: 0.8rem;
}

.scroll-cue-indicator {
  width: 44px;
  height: 2px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.scroll-cue-dot {
  position: absolute;
  width: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 2.4s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { left: -14px; }
  100% { left: 44px; }
}

/* === GENERAL SECTION STYLES === */
.section {
  position: relative;
  z-index: 2;
  padding: 130px 52px;
  background: rgba(249, 250, 251, 0.88);
}

.section-gray {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--gray-900);
  margin-bottom: 18px;
}

.section-heading em {
  font-style: italic;
  color: var(--accent);
}

.section-body {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 56px;
}

/* === 01 PHILOSOPHY PILLARS === */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s, border-color 0.4s;
  transform-style: preserve-3d;
}

.pillar:hover {
  background: #ffffff;
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: 0 18px 45px rgba(139, 97, 45, 0.12);
}

.pillar-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease-spring);
}

.pillar:hover .pillar-num {
  transform: translateX(4px);
}

.pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.pillar p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.pillar-wood-accent {
  position: absolute;
  bottom: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s;
}

.pillar:hover .pillar-wood-accent {
  opacity: 1;
}

/* === 02 SKILLS & TECH === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.skill-card {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s, border-color 0.4s;
  transform-style: preserve-3d;
}

.skill-card:hover {
  background: #ffffff;
  transform: translateY(-5px);
  border-color: var(--accent-border);
  box-shadow: 0 16px 40px rgba(139, 97, 45, 0.1);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-icon-badge {
  width: 38px;
  height: 38px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.skill-header h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-900);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 7px 15px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.3s var(--ease-spring);
}

.skill-tags span:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* === 03 SELECTED WORK / CASES === */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.case-card {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s, border-color 0.4s;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  background: #ffffff;
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: 0 22px 55px rgba(139, 97, 45, 0.13);
}

.case-card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

.case-card-wide .case-thumb {
  min-height: 320px;
}

/* Browser Mockup Header Bar */
.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 3;
}

.browser-bar-dark {
  background: #18181f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }

.browser-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray-600);
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 14px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  letter-spacing: -0.01em;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-bar-dark .browser-url {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.08);
}

.browser-zoom-btn {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
}

.case-thumb:hover .browser-zoom-btn {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.04);
}

.browser-bar-dark .browser-zoom-btn {
  background: rgba(139, 97, 45, 0.25);
  color: #e2b378;
  border-color: rgba(139, 97, 45, 0.4);
}

.browser-bar-dark:hover .browser-zoom-btn,
.case-card:hover .browser-bar-dark .browser-zoom-btn {
  background: var(--accent);
  color: #ffffff;
}

/* Uncropped Media Container */
.case-thumb-media {
  position: relative;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #edf1f6 100%);
  overflow: hidden;
}

.case-card-wide .case-thumb-media {
  height: 100%;
  min-height: 270px;
}

.case-thumb-mockup .case-thumb-media {
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #e7f0fa 100%);
}

.case-thumb-marketplace .case-thumb-media {
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #edf1f6 100%);
}

.case-thumb-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  display: block;
}

.case-card:hover .case-thumb-media img {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.case-thumb-marketplace .case-thumb-media img {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.case-thumb-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 4;
}

.case-card:hover .case-thumb-shimmer {
  animation: shimmerSweep 1s ease-in-out;
}

.stylized-badge {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.8;
  font-family: var(--font-mono);
}

.case-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.case-pills span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.case-pills .pill-primary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

.case-body h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.case-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.case-btn {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.3s var(--ease-spring), color 0.3s;
}

.case-btn:hover {
  gap: 10px;
  color: var(--accent-dark);
}

.case-arrow {
  transition: transform 0.3s;
}

.case-btn:hover .case-arrow {
  transform: translate(2px, -2px);
}

.case-status-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
  font-family: var(--font-mono);
}

/* === 04 IMPACT & MARKETING === */
.impact-category-block {
  margin-bottom: 56px;
}

.impact-cat-header {
  margin-bottom: 24px;
}

.impact-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.impact-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(139, 97, 45, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(139, 97, 45, 0.22);
  line-height: 1;
}

.impact-partner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-800);
  background: #ffffff;
  border: 1px solid var(--gray-300);
  padding: 6px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  line-height: 1;
}

.impact-partner-link:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.impact-context-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 6px 14px;
  border-radius: 100px;
  line-height: 1;
}

.impact-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: #047857;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  line-height: 1;
}

.impact-cat-header h3 {
  font-family: var(--font-serif);
  font-size: 1.48rem;
  color: var(--gray-900);
  font-weight: 600;
}

.impact-cat-sub {
  font-size: 0.94rem;
  color: var(--gray-600);
  margin-top: 6px;
  line-height: 1.5;
}

.impact-cat-sub a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}

.impact-cat-sub a:hover {
  color: var(--accent-dark);
}

.impact-role-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(139, 97, 45, 0.05);
  border: 1px dashed rgba(139, 97, 45, 0.3);
  border-radius: 12px;
  padding: 10px 16px;
  margin-top: 14px;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--gray-700);
}

.disclaimer-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid rgba(139, 97, 45, 0.28);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.impact-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 36px;
  margin-bottom: 16px;
}

/* === IMPACT STORY CASE CARD (UNIFIED CASE NARRATIVE) === */
.impact-story-card {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  padding: 32px 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}

.impact-story-card:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.story-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(139, 97, 45, 0.08);
  border: 1px solid rgba(139, 97, 45, 0.2);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.story-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.32;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.story-p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.story-p:last-of-type {
  margin-bottom: 20px;
}

.story-p strong {
  color: var(--gray-900);
  font-weight: 600;
}

.story-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.story-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ss-val {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.ss-lbl {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.story-stat-sep {
  width: 1px;
  height: 28px;
  background: var(--gray-200);
}

.impact-image-card {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  position: relative;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}

.impact-image-card:hover {
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.09);
}

.impact-zoom-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(26, 31, 40, 0.88);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  pointer-events: none;
  transition: all 0.25s ease;
}

.impact-image-card:hover .impact-zoom-hint {
  background: var(--accent);
  transform: scale(1.04);
}

.impact-image-wrap {
  position: relative;
  overflow: hidden;
}

.impact-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.impact-badge-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(26, 31, 40, 0.92);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-dot-live {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.impact-metrics-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s var(--ease-spring), border-color 0.3s;
}

.metric-card:hover {
  transform: translateX(6px);
  border-color: var(--accent-border);
}

.metric-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  background: var(--gray-100);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-details {
  display: flex;
  flex-direction: column;
}

.metric-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  font-weight: 600;
}

.metric-figure {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.2;
  margin: 2px 0 4px;
}

.font-accent {
  color: var(--accent);
}

.metric-green {
  color: #15803d;
}

.metric-sub {
  font-size: 0.82rem;
  color: var(--gray-500);
}

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

.service-box {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s var(--ease-spring), border-color 0.4s;
}

.service-box:hover {
  background: #ffffff;
  transform: translateY(-5px);
  border-color: var(--accent-border);
}

.svc-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.service-box h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.service-box p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.svc-bottom-accent {
  position: absolute;
  bottom: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-box:hover .svc-bottom-accent {
  opacity: 1;
}

/* === 05 REACH OUT === */
.reach-layout {
  text-align: center;
}

.reach-layout .section-heading,
.reach-layout .section-body {
  margin-left: auto;
  margin-right: auto;
}

.reach-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.reach-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  border-radius: 100px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.reach-btn:hover {
  transform: translateY(-3px);
  z-index: 2;
}

.reach-btn-email {
  background: var(--accent);
  color: #ffffff;
  border: 1.5px solid var(--accent);
  box-shadow: 0 4px 18px var(--accent-glow);
}

.reach-btn-email:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 10px 28px rgba(139, 97, 45, 0.38);
}

.reach-btn-whatsapp {
  background: #ffffff;
  color: var(--gray-800);
  border: 1.5px solid var(--gray-300);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.reach-btn-whatsapp:hover {
  border-color: #25d366;
  color: #128c7e;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.2);
}

.reach-btn-icon {
  font-size: 1.2rem;
}

.reach-location {
  font-size: 0.88rem;
  color: var(--gray-500);
}

/* === FOOTER === */
.footer {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--gray-200);
  padding: 32px 52px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.back-to-top {
  color: var(--accent);
  font-weight: 600;
  transition: transform 0.3s;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* =====================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================== */
[data-scroll] {
  opacity: 0;
  transition-property: opacity, transform, filter;
  transition-duration: 0.8s;
  transition-timing-function: var(--ease-out);
  will-change: opacity, transform;
}

[data-anim="slide-up"] { transform: translateY(32px); }
[data-anim="fade-up"] { transform: translateY(24px); }
[data-anim="card-rise"] { transform: translateY(48px) scale(0.97); }
[data-anim="zoom-in"] { transform: scale(0.92); }
[data-anim="split-lines"] { transform: translateY(20px); }
[data-anim="slide-right"] { transform: translateX(-32px); }
[data-anim="slide-left"] { transform: translateX(32px); }

[data-scroll].visible {
  opacity: 1;
  transform: none;
}

[data-anim="card-rise"].visible {
  transition-timing-function: var(--ease-spring);
  transition-duration: 0.9s;
}

/* =====================================================
   PREVIEW LIGHTBOX MODAL
   ===================================================== */
.preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
}

.lightbox-modal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  max-height: 92vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.4s var(--ease-spring);
}

.preview-lightbox.active .lightbox-modal {
  transform: scale(1) translateY(0);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  z-index: 5;
}

.lightbox-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  font-family: var(--font-sans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 16px;
}

.lightbox-close {
  background: #e2e8f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lightbox-close:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.08);
}

.lightbox-body {
  position: relative;
  flex: 1;
  overflow: auto;
  background: #0f172a;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.lightbox-body img {
  position: relative;
  z-index: 3;
  max-width: 96%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.75);
  background: #ffffff;
  transition: transform 0.3s ease;
}

/* =====================================================
   RESPONSIVE DESIGN (TABLETS, MOBILES & SMALL DEVICES)
   ===================================================== */
@media (max-width: 1024px) {
  /* Header: strictly hide desktop nav, show burger on tablets and mobile */
  .header .header-nav,
  .header-nav {
    display: none !important;
  }
  .header .header-burger,
  .header-burger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s;
  }
  .header-burger span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-spring), opacity 0.2s ease, background 0.3s;
  }
  .header.scrolled .header-burger {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--gray-200);
  }
  .header.scrolled .header-burger span {
    background: var(--gray-900);
  }
  .header .header-burger.active,
  .header:not(.scrolled) .header-burger.active,
  .header.scrolled .header-burger.active {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.16) !important;
  }
  .header .header-burger.active span,
  .header:not(.scrolled) .header-burger.active span,
  .header.scrolled .header-burger.active span {
    background: var(--gray-900) !important;
    box-shadow: none !important;
  }
  .header-burger.active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .header-burger.active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-badge,
  .hero-body {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-numbers {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-col-photo {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
  }
  .pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .case-card-wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .case-card-wide .case-thumb {
    min-height: auto;
  }
  .impact-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .impact-story-card {
    padding: 28px 24px;
  }
  .story-stats-bar {
    gap: 16px;
  }
  .service-trio {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Disable custom mouse cursor on touch screens */
  .cursor-glow,
  .cursor-ring,
  .cursor-dot {
    display: none !important;
  }

  body {
    cursor: auto !important;
  }

  /* Header & Navigation */
  .header {
    padding: 12px 18px;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .header.scrolled {
    padding: 10px 18px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .header .header-name {
    font-size: clamp(0.88rem, 3.6vw, 1.15rem);
    max-width: calc(100% - 56px);
  }
  .header .header-nav,
  .header-nav {
    display: none !important;
  }
  .header .header-burger,
  .header-burger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s;
  }
  .header-burger span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-spring), opacity 0.2s ease, background 0.3s;
  }
  .header.scrolled .header-burger {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--gray-200);
  }
  .header.scrolled .header-burger span {
    background: var(--gray-900);
  }

  /* Active Burger (Cross 'X') when mobile nav is open */
  .header .header-burger.active,
  .header:not(.scrolled) .header-burger.active,
  .header.scrolled .header-burger.active {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.16) !important;
  }
  .header .header-burger.active span,
  .header:not(.scrolled) .header-burger.active span,
  .header.scrolled .header-burger.active span {
    background: var(--gray-900) !important;
    box-shadow: none !important;
  }
  .header-burger.active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .header-burger.active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  /* Audio Floating Widget */
  .audio-floating-widget {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    z-index: 90;
  }
  .audio-floating-btn {
    min-height: 44px;
    padding: 8px 14px;
    gap: 8px;
  }
  .af-label {
    font-size: 0.76rem;
  }

  /* Sections Spacing */
  .section {
    padding: 72px 20px;
  }

  /* Cinematic Hero */
  .cinematic-hero {
    padding: 100px 20px 48px;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .cinematic-title {
    font-size: clamp(2.1rem, 7.8vw, 3.2rem);
  }
  .cinematic-tagline {
    font-size: 0.92rem;
    padding: 8px 18px;
    border-radius: 20px;
  }
  .cinematic-scroll-pill {
    padding: 10px 22px;
    font-size: 0.82rem;
    min-height: 44px;
  }

  /* Main Hero (#hero) */
  .hero {
    padding: 96px 20px 48px;
    min-height: auto;
  }
  .hero-col-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 32px 22px;
    border-radius: 24px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  }
  .hero-heading {
    font-size: clamp(2rem, 6.5vw, 2.75rem);
    line-height: 1.15;
    word-break: break-word;
  }
  .hero-eyebrow {
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .eyebrow-text {
    font-size: 0.8rem;
    text-align: center;
  }
  .hero-body {
    font-size: 0.94rem;
    line-height: 1.68;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Hero Actions: Touch friendly vertical stack */
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 32px;
    gap: 12px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    min-height: 48px;
    padding: 13px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
  }

  /* Hero Numbers: Clean 3-column row with separators */
  .hero-numbers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    gap: 6px;
  }
  .num-block {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0 4px;
  }
  .num-val {
    font-size: clamp(1.4rem, 4.8vw, 1.85rem);
    font-weight: 700;
    line-height: 1.1;
  }
  .num-plus,
  .num-unit {
    font-size: clamp(0.88rem, 2.8vw, 1.1rem);
  }
  .num-lbl {
    font-size: clamp(0.64rem, 2.2vw, 0.72rem);
    line-height: 1.32;
    margin-top: 4px;
    display: block;
  }
  .num-sep {
    width: 1px;
    height: 34px;
    background: var(--gray-200);
    flex-shrink: 0;
  }

  /* Hero Photo Card */
  .hero-col-photo {
    max-width: 280px;
  }
  .photo-tag {
    font-size: 0.7rem;
    padding: 5px 12px;
    background: #ffffff;
  }
  .photo-tag-top {
    top: 12px;
    right: 12px;
  }
  .photo-tag-bottom {
    bottom: 14px;
    left: 12px;
  }

  /* Section Headings */
  .section-heading {
    font-size: clamp(1.85rem, 5.6vw, 2.4rem);
    line-height: 1.2;
    word-break: break-word;
  }
  .section-body {
    font-size: 0.94rem;
  }

  /* Section 01 Pillars */
  .pillars {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .pillar {
    padding: 28px 22px;
  }
  .pillar-num {
    font-size: 1.9rem;
    margin-bottom: 14px;
  }

  /* Section 02 Skills */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .skill-card {
    padding: 26px 22px;
  }

  /* Section 03 Cases */
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .case-thumb-media {
    height: 220px;
    padding: 10px;
  }
  .browser-bar {
    padding: 8px 14px;
  }
  .browser-url {
    max-width: 140px;
    font-size: 0.72rem;
  }
  .browser-zoom-btn {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
  .case-body {
    padding: 24px 20px;
  }
  .case-body h3 {
    font-size: 1.3rem;
  }
  .case-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Section 04 Impact */
  .impact-category-block {
    margin-top: 44px;
  }
  .impact-cat-header {
    margin-bottom: 22px;
  }
  .impact-cat-header h3 {
    font-size: clamp(1.25rem, 4.4vw, 1.55rem);
  }
  .impact-image-card {
    border-radius: 18px;
  }
  .impact-zoom-hint {
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    padding: 4px 12px;
  }
  .impact-badge-tag {
    bottom: 12px;
    left: 12px;
    font-size: 0.72rem;
    padding: 6px 14px;
    max-width: calc(100% - 24px);
  }
  .impact-story-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .story-title {
    font-size: clamp(1.18rem, 3.8vw, 1.35rem);
  }
  .story-p {
    font-size: 0.88rem;
    line-height: 1.62;
  }
  .story-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
    padding-top: 16px;
    margin-top: 14px;
  }
  .story-stat-sep {
    display: none;
  }
  .story-stat-item {
    align-items: center;
  }
  .ss-val {
    font-size: 1.08rem;
  }
  .ss-lbl {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  /* Section 05 Reach Out */
  .reach-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 28px;
    gap: 12px;
  }
  .reach-btn {
    width: 100%;
    justify-content: center;
    min-height: 50px;
    padding: 14px 24px;
    box-sizing: border-box;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer {
    padding: 28px 20px calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .back-to-top {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .header.scrolled {
    padding: 8px 16px;
    padding-top: max(8px, env(safe-area-inset-top));
  }
  .header .header-name {
    font-size: clamp(0.85rem, 3.8vw, 1.02rem);
    max-width: calc(100% - 52px);
  }
  .header-burger {
    width: 40px;
    height: 40px;
  }
  .section {
    padding: 56px 16px;
  }

  .cinematic-badge {
    padding: 5px 12px;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  /* Hero on mobile phone */
  .hero {
    padding: 86px 16px 36px;
  }
  .hero-col-text {
    padding: 24px 16px;
    border-radius: 20px;
  }
  .hero-heading {
    font-size: clamp(1.8rem, 7.8vw, 2.25rem);
    line-height: 1.16;
  }
  .hero-col-photo {
    max-width: 230px;
  }
  .photo-tag {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
  .photo-tag-top {
    top: 8px;
    right: 8px;
  }
  .photo-tag-bottom {
    bottom: 8px;
    left: 8px;
  }

  /* Hero stats on phone */
  .hero-numbers {
    padding-top: 20px;
    gap: 4px;
  }
  .num-val {
    font-size: 1.45rem;
  }
  .num-lbl {
    font-size: 0.64rem;
  }
  .num-sep {
    height: 30px;
  }

  /* Pillars on phone */
  .pillar {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .pillar-num {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }
  .pillar h3 {
    font-size: 1.18rem;
  }
  .pillar p {
    font-size: 0.86rem;
  }

  /* Skills on phone */
  .skill-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .skill-header h4 {
    font-size: 1.12rem;
  }
  .skill-tags span {
    font-size: 0.74rem;
    padding: 4px 10px;
  }

  /* Cases on phone */
  .case-thumb-media {
    height: 185px;
    padding: 8px;
  }
  .browser-bar {
    padding: 7px 10px;
  }
  .browser-url {
    max-width: 105px;
    font-size: 0.66rem;
  }
  .browser-zoom-btn {
    font-size: 0.64rem;
    padding: 2px 6px;
  }
  .case-body {
    padding: 18px 16px;
  }
  .case-body h3 {
    font-size: 1.22rem;
  }
  .case-body p {
    font-size: 0.85rem;
    line-height: 1.58;
    margin-bottom: 16px;
  }
  .case-pills span {
    font-size: 0.66rem;
    padding: 2px 8px;
  }

  /* Impact on phone */
  .impact-category-block {
    margin-top: 36px;
  }
  .impact-cat-sub {
    font-size: 0.82rem;
  }
  .impact-zoom-hint {
    font-size: 0.64rem;
    padding: 3px 8px;
    top: 8px;
    right: 8px;
  }
  .impact-badge-tag {
    font-size: 0.66rem;
    padding: 4px 10px;
    bottom: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
  }
  .impact-story-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .story-tag-pill {
    font-size: 0.66rem;
    padding: 3px 10px;
    margin-bottom: 12px;
  }
  .story-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }
  .story-p {
    font-size: 0.85rem;
    line-height: 1.58;
    margin-bottom: 10px;
  }
  .ss-val {
    font-size: 0.98rem;
  }
  .ss-lbl {
    font-size: 0.64rem;
  }

  /* Services Trio on phone */
  .service-box {
    padding: 20px 16px;
    border-radius: 16px;
  }

  /* Reach Out on phone */
  .reach-btn {
    padding: 13px 18px;
    font-size: 0.88rem;
  }

  /* Lightbox Mobile */
  .preview-lightbox {
    padding: 8px;
  }
  .lightbox-modal {
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 12px;
  }
  .lightbox-bar {
    padding: 8px 12px;
    min-height: 44px;
  }
  .lightbox-title {
    font-size: 0.74rem;
    max-width: 160px;
    padding: 0 4px;
  }
  .lightbox-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 0.9rem;
  }
  .lightbox-body {
    padding: 8px;
    min-height: 220px;
  }
}

@media (max-width: 380px) {
  .badge-sub-text {
    display: none;
  }
  .cinematic-badge {
    font-size: 0.64rem;
    padding: 4px 10px;
  }
}

@media (max-width: 360px) {
  .hero-heading {
    font-size: 1.7rem;
  }
  .hero-numbers {
    flex-direction: column;
    gap: 12px;
  }
  .num-sep {
    width: 36px;
    height: 1px;
  }
  .story-stats-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }
  .story-stat-item {
    align-items: flex-start;
  }
  .reach-btn {
    font-size: 0.82rem;
    padding: 12px 14px;
  }
}

/* =====================================================
   OVERHAUL: AWWWARDS-GRADE SCROLL EXPERIENCE & 3D REFINEMENTS
   Smooth Lenis, 3D Perspective Rail, Kinetic HUD & Micro-Interactions
   ===================================================== */

/* 1. LENIS SMOOTH INERTIA 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;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* 2. DESKTOP KINETIC SCROLL HUD (RIGHT SIDE NAVIGATOR) */
.scroll-hud {
  position: fixed;
  right: clamp(16px, 2.5vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  pointer-events: auto;
}

.scroll-hud-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 10px;
  border-radius: 100px;
  border: 1px solid rgba(139, 97, 45, 0.22);
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.8);
  position: relative;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 4px;
  text-decoration: none;
  color: var(--gray-500);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  flex-shrink: 0;
}

.hud-label {
  position: absolute;
  right: calc(100% + 12px);
  background: rgba(26, 31, 40, 0.92);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.hud-label::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(26, 31, 40, 0.92);
}

.hud-item:hover .hud-label {
  opacity: 1;
  transform: translateX(0);
}

.hud-item.active .hud-dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: scale(1.4);
}

.hud-item:hover .hud-dot {
  background: var(--accent-light);
  transform: scale(1.25);
}

@media (max-width: 1024px) {
  .scroll-hud {
    display: none;
  }
}

/* 3. PORTFOLIO HORIZONTAL 3D SHOWCASE SECTION */
.section-portfolio-pin {
  position: relative;
  overflow: visible;
  padding: 80px 0 60px;
}

.portfolio-header {
  margin-bottom: 32px;
  padding: 0 clamp(24px, 5.5vw, 80px);
  width: 100%;
  box-sizing: border-box;
}

.portfolio-header-left {
  max-width: 680px;
}

.portfolio-pinned-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.portfolio-hud-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  width: 100%;
  z-index: 5;
}

.portfolio-nav-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gray-600);
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(226, 231, 238, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.pnh-icon {
  color: var(--accent);
  font-size: 0.9rem;
  animation: pulseX 2s infinite ease-in-out;
}

@keyframes pulseX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.portfolio-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(139, 97, 45, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.pc-current {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

.pc-sep {
  color: var(--gray-400);
}

.pc-total {
  color: var(--gray-500);
}

/* Horizontal Showcase Viewport & Track */
.portfolio-showcase-viewport {
  width: 100%;
  overflow: visible;
  position: relative;
  perspective: 1400px;
  perspective-origin: center center;
  padding: 10px 0 18px;
}

.portfolio-horizontal-track {
  display: flex;
  gap: clamp(24px, 3.5vw, 42px);
  padding: 0 clamp(24px, 5.5vw, 80px);
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
}

/* 3D Velocity-Skewed Horizontal Case Card */
.case-card-horizontal {
  flex: 0 0 clamp(320px, 31vw, 430px);
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid rgba(226, 231, 238, 0.85);
  box-shadow: 0 16px 40px -12px rgba(26, 31, 40, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  position: relative;
}

.case-card-horizontal:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(139, 97, 45, 0.4);
  box-shadow: 0 28px 60px -16px rgba(139, 97, 45, 0.16), 0 0 0 1px rgba(139, 97, 45, 0.3);
}

.case-card-horizontal .case-thumb {
  position: relative;
  background: var(--gray-100);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
}

.case-card-horizontal .browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #fdfdfd;
  border-bottom: 1px solid rgba(226, 231, 238, 0.8);
  gap: 8px;
}

.case-card-horizontal .browser-dots {
  display: flex;
  gap: 5px;
}

.case-card-horizontal .browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.case-card-horizontal .browser-dots span:nth-child(1) { background: #ff5f56; }
.case-card-horizontal .browser-dots span:nth-child(2) { background: #ffbd2e; }
.case-card-horizontal .browser-dots span:nth-child(3) { background: #27c93f; }

.case-card-horizontal .browser-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray-600);
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.case-card-horizontal .browser-zoom-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  background: rgba(139, 97, 45, 0.08);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  transition: all 0.2s;
}

.case-card-horizontal:hover .browser-zoom-btn {
  background: var(--accent);
  color: #ffffff;
}

.case-card-horizontal .case-thumb-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f8fafc;
}

.case-card-horizontal .case-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  background: #f8fafc;
  display: block;
}

.case-card-horizontal:hover .case-thumb-media img {
  transform: scale(1.05);
}

.case-card-horizontal .case-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-card-horizontal .case-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.case-card-horizontal .case-pills span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--gray-700);
}

.case-card-horizontal .case-pills .pill-primary {
  background: rgba(139, 97, 45, 0.12);
  color: var(--accent);
  font-weight: 600;
}

.case-card-horizontal h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.case-card-horizontal p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--gray-600);
  margin-bottom: 16px;
  flex: 1;
}

.case-card-horizontal .case-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.case-card-horizontal .case-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  transition: all 0.2s;
}

.case-card-horizontal .case-btn:hover {
  color: var(--accent-dark);
  transform: translateX(4px);
}

.case-card-horizontal .case-status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 100px;
}

/* Dots Navigation Bar */
.portfolio-dots-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.p-dot {
  width: 10px;
  height: 10px;
  border-radius: 100px;
  border: none;
  background: var(--gray-300);
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.p-dot.active {
  width: 28px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.p-dot:hover:not(.active) {
  background: var(--gray-400);
  transform: scale(1.2);
}

/* 4. IMPACT SHOWCASE INTERACTIVE TABS */
.impact-tabs-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* 4. DIRECT SEQUENTIAL IMPACT CASE STUDIES */
.impact-category-block {
  display: block;
  opacity: 1;
  transform: none;
  margin-bottom: 72px;
}

.impact-category-block:last-of-type {
  margin-bottom: 56px;
}

/* 5. LIVE STUDIO LUMAJANG CLOCK CARD */
.studio-status-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(139, 97, 45, 0.25);
  padding: 20px 32px;
  border-radius: 20px;
  margin-bottom: 28px;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.studio-status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pulse-beacon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27c93f;
  box-shadow: 0 0 10px #27c93f;
  position: relative;
}

.pulse-beacon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #27c93f;
  animation: beaconPing 2s infinite ease-out;
}

@keyframes beaconPing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.studio-status-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.studio-clock {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 4px;
}

.studio-status-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 0 !important;
}

/* 6. TOAST FEEDBACK NOTIFICATION */
.toast-feedback {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(26, 31, 40, 0.95);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10002;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.toast-feedback.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.copy-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
}

/* Mobile Horizontal Showcase: Pinned Auto-Rail on Scroll */
@media (max-width: 768px) {
  .section-portfolio-pin {
    padding: 68px 0 40px;
    overflow: visible;
  }

  .portfolio-header {
    padding: 0 20px;
    margin-bottom: 20px;
  }

  .portfolio-pinned-wrap {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
  }

  .portfolio-hud-ctrl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    margin-bottom: 12px;
    width: 100%;
  }

  .portfolio-showcase-viewport {
    overflow: hidden;
    width: 100%;
    padding: 6px 0 16px;
    perspective: 1200px;
  }

  .portfolio-horizontal-track {
    display: flex;
    width: max-content;
    padding: 0 20px;
    gap: 16px;
    will-change: transform;
    transform-style: preserve-3d;
  }

  .case-card-horizontal {
    flex: 0 0 82vw;
    max-width: 360px;
  }

  .case-card-horizontal .case-body {
    padding: 16px 18px;
  }

  .case-card-horizontal h3 {
    font-size: 1.16rem;
    margin-bottom: 4px;
  }

  .case-card-horizontal p {
    font-size: 0.8rem;
    line-height: 1.48;
    margin-bottom: 12px;
  }

  .portfolio-dots-bar {
    margin-top: 10px;
  }

  .portfolio-nav-hint {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

/* =====================================================
   15. LANGUAGE SELECTION MODAL & NAVBAR TOGGLE
   ===================================================== */
.header-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px !important;
  border-radius: 100px !important;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.header.scrolled .header-lang-btn {
  background: var(--gray-100) !important;
  color: var(--gray-800) !important;
  border-color: rgba(226, 231, 238, 0.9) !important;
  text-shadow: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.header-lang-btn:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(139, 97, 45, 0.2) !important;
  text-shadow: none !important;
}

.mob-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(139, 97, 45, 0.25);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--gray-900);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.mob-lang-btn strong {
  color: var(--accent);
}

/* Modal Backdrop */
.lang-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10006;
  background: rgba(18, 22, 30, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  box-sizing: border-box;
}

.lang-modal-backdrop.open,
.lang-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lang-modal-box {
  background: #ffffff;
  border-radius: 24px;
  border: 1.5px solid rgba(139, 97, 45, 0.28);
  box-shadow: 0 24px 60px -12px rgba(26, 31, 40, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.95);
  max-width: 580px;
  width: 100%;
  padding: 36px 32px 28px;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.lang-modal-backdrop.open .lang-modal-box,
.lang-modal-backdrop.is-open .lang-modal-box {
  transform: translateY(0) scale(1);
}

.header-lang-btn .active-lang {
  color: #ffdda1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header.scrolled .header-lang-btn .active-lang {
  color: var(--accent);
  font-weight: 700;
}

.lang-modal-leaf {
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: 10px;
  animation: leafFloat 2.5s infinite ease-in-out;
}

@keyframes leafFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(6deg); }
}

.lang-modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.lang-modal-sub {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.5;
}

.lang-modal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .lang-modal-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lang-modal-box {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }
}

.lang-choice-card {
  background: var(--gray-50);
  border: 1.5px solid rgba(226, 231, 238, 0.95);
  border-radius: 18px;
  padding: 20px 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.lang-choice-card:hover {
  background: #ffffff;
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -8px rgba(139, 97, 45, 0.22);
}

.lcc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lcc-flag {
  font-size: 1.6rem;
}

.lcc-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(139, 97, 45, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.lcc-main .lcc-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.lcc-main .lcc-desc {
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--gray-600);
  margin: 0;
}

.lcc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  border-top: 1px solid rgba(226, 231, 238, 0.8);
  padding-top: 10px;
}

.lcc-arrow {
  transition: transform 0.2s ease;
}

.lang-choice-card:hover .lcc-arrow {
  transform: translateX(4px);
}

.lang-modal-footer-note {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.45;
}


