
/* --- SSG Compiled Headless CMS Tokens --- */
:root {
  --font-family: "DM Sans", -apple-system, sans-serif;
  --color-orange: #ff5e2a;
  --color-orange-hover: #E04818;
  --color-orange-bg: #ff6730;
  --color-hero-bg: #ffffff;
  --color-text-dark: #1E1E1E;
  --color-card-bg: #d9d9d9;
  --color-card-tag-border: #ff5e2a;
  --color-card-tag-text: #1e1e1e;
  --card-width: 590px;
  --card-radius: 36px;
  --card-gap: 32px;
  --hero-title-weight: 800;
  --hero-title-spacing: -0.04em;
  --hero-eyebrow-weight: 400;
  --hero-eyebrow-spacing: -0.015em;
  --hero-cta-weight: 500;
  --hero-cta-spacing: -0.01em;
  --nav-link-weight: 500;
  --nav-link-spacing: -0.01em;
  --nav-cta-weight: 500;
  --nav-cta-spacing: -0.01em;
  --showcase-title-weight: 100;
  --showcase-title-spacing: 0.01em;
  --story-msg-weight: 500;
  --story-msg-spacing: 0.015em;
  --card-tag-weight: 700;
  --card-tag-spacing: -0.01em;
}
/* ==========================================================
   Portfolio PPWD - Expanded Scale Layout
   Follows Yellow & Red Box Dimensions | DM Sans Typography
   ========================================================== */

:root {
  /* Fonts & Global Typography (All Pages) */
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-headings: 800;
  --font-weight-body: 400;
  --letter-spacing-headings: -0.04em;
  --letter-spacing-body: -0.01em;

  /* Individual Typography Tokens (Every Font Element Separately) */
  --hero-title-weight: 800;
  --hero-title-spacing: -0.04em;
  --hero-eyebrow-weight: 400;
  --hero-eyebrow-spacing: -0.015em;
  --hero-cta-weight: 500;
  --hero-cta-spacing: -0.01em;
  --nav-link-weight: 500;
  --nav-link-spacing: -0.01em;
  --nav-cta-weight: 500;
  --nav-cta-spacing: -0.01em;
  --showcase-title-weight: 400;
  --showcase-title-spacing: 0.025em;
  --story-msg-weight: 500;
  --story-msg-spacing: 0.015em;
  --card-tag-weight: 600;
  --card-tag-spacing: -0.01em;

  --hero-title-size: clamp(5.8rem, 12.6vw, 189px);
  --hero-eyebrow-size: clamp(1.8rem, 2.9vw, 43px);
  --showcase-title-size: clamp(26px, 3.1vw, 50px);
  
  /* Website Colors */
  --color-orange: #FF5E2A;
  --color-orange-hover: #E84F1D;
  --color-text-dark: #1E1E1E;
  --color-white: #FFFFFF;
  --color-orange-bg: #FF6730;
  --color-card-bg: #D9D9D9;
  --color-card-tag-border: #FF5E2A;
  --color-card-tag-text: #1E1E1E;

  /* Slide Sizing & Element Dimensions */
  --card-width: 590px;
  --card-radius: 36px;
  --card-gap: 32px;
  --btn-pill-height: 60px;
  --nav-height: 110px;
  --padding-x: clamp(32px, 5.5vw, 92px);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: var(--color-white);
  color: var(--color-text-dark);
  font-family: var(--font-family);
  font-weight: var(--font-weight-body, 400);
  letter-spacing: var(--letter-spacing-body, -0.01em);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-headings, 700);
  letter-spacing: var(--letter-spacing-headings, -0.04em);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* ==========================================================
   Full Screen Page Screens (Same Height & Width: 100vw x 100vh)
   ========================================================== */
.page-screen {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Page 1: Hero Page (Content height, ends 10px below buttons) */
.page-hero {
  background-color: var(--color-white);
  height: auto;
  min-height: auto;
}

/* Page 2: Orange Screen (#FF6730 Background, 5-Scroll + Showcase Track) */
.page-scroll-track {
  width: 100%;
  height: 600vh; /* 5 scrolls for ball animation + 1 scroll for showcase reveal */
  position: relative;
  background-color: transparent;
}

.page-orange-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-orange-bg, #FF6730);
  overflow: hidden;
  z-index: 20;
}

/* Hidden Trajectory Path Definitions */
.trajectories-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  visibility: hidden;
  z-index: 1;
}

/* Flying Paper Ball Actor (Extra Large, No Shadow - Decreased by 30px) */
.paper-ball-actor {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(290px, calc(55vw - 30px), 850px);
  height: auto;
  pointer-events: none;
  z-index: 25;
  will-change: transform, opacity;
  opacity: 0;
  transform-origin: center center;
  filter: none !important;
  box-shadow: none !important;
}

.paper-ball-actor img {
  width: 100%;
  height: auto;
  display: block;
  filter: none !important;
  box-shadow: none !important;
}

/* ==========================================================
   Story Transition Messages (Reveals in center as each ball dissolves)
   ========================================================== */
.story-message-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 23;
  pointer-events: none;
  text-align: center;
  width: max-content;
  max-width: clamp(360px, 88vw, 1100px);
  padding: 0;
  box-sizing: border-box;
  opacity: 0;
  will-change: transform, opacity;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.15s ease-out;
}

.story-message-text {
  color: var(--color-white, #FFFFFF);
  font-family: var(--font-family);
  font-size: clamp(34px, 5.2vw, 76px);
  font-weight: var(--story-msg-weight, 500);
  line-height: 1.15;
  letter-spacing: var(--story-msg-spacing, -0.025em);
  margin: 0;
  white-space: normal;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

/* ==========================================================
   Showcase Layout (Reveals from bottom when 5 scrolls end)
   ========================================================== */
.showcase-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(20px, 3vh, 32px) var(--padding-x) clamp(16px, 2.5vh, 26px);
  box-sizing: border-box;
  z-index: 35;
  pointer-events: none;
  transform: translate3d(0, 105%, 0);
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.2s ease-out;
}

/* Header: Green box zone (Heading at top-left, Navigation arrows at top-right) */
.showcase-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 32px);
  margin-bottom: clamp(18px, 2.6vh, 34px); /* Clean separation defining top of blue box */
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Showcase Title: Fits cleanly inside green box dimensions */
.showcase-title {
  color: var(--color-white, #FFFFFF);
  font-family: var(--font-family);
  font-size: var(--showcase-title-size, clamp(22px, min(3.2vw, 4.8vh), 44px));
  font-weight: var(--showcase-title-weight, var(--font-weight-headings, 700));
  line-height: 1.12;
  letter-spacing: var(--showcase-title-spacing, var(--letter-spacing-headings, -0.03em));
  margin: 0;
  max-width: clamp(340px, 42vw, 660px);
  white-space: normal;
}

.showcase-controls {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  flex-shrink: 0;
  margin-top: clamp(4px, 0.8vh, 10px);
}

/* Navigation Buttons (Top-right corner) */
.showcase-nav-btn {
  width: clamp(52px, 4.4vw, 76px);
  height: clamp(52px, 4.4vw, 76px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  padding: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.showcase-nav-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #FFFFFF;
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
}

.showcase-nav-btn:active {
  transform: scale(0.95);
}

.showcase-nav-btn svg {
  width: clamp(22px, 2vw, 32px);
  height: clamp(22px, 2vw, 32px);
  stroke-width: 2.5;
  display: block;
  pointer-events: none;
}

/* Cards Wrapper - Blue box zone: starts cleanly below header and fills to bottom */
.showcase-cards-wrapper {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
}

.showcase-cards-wrapper::-webkit-scrollbar {
  display: none;
}

.showcase-cards-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--card-gap, clamp(20px, 2.4vw, 36px));
  height: 100%;
  width: max-content;
  padding-bottom: 0;
  padding-right: var(--padding-x);
  box-sizing: border-box;
}

/* Full Width Card */
.showcase-card {
  background-color: var(--color-card-bg, #D9D9D9);
  border-radius: var(--card-radius, clamp(24px, 2.4vw, 42px));
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  box-sizing: border-box;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.showcase-card--full {
  width: var(--card-width, clamp(380px, 42vw, 680px));
  height: 100%;
}

/* Split Column for Half Cards */
.showcase-card-col {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vh, 20px);
  width: var(--card-width, clamp(380px, 42vw, 680px));
  height: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.showcase-card--half {
  flex: 1;
  width: 100%;
  min-height: 0;
  border-radius: calc(var(--card-radius, clamp(24px, 2.4vw, 42px)) * 0.85);
  box-sizing: border-box;
}

.showcase-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: inherit;
  overflow: hidden;
}

/* Card Image Overlay */
.showcase-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.showcase-card-img-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.08));
  z-index: 1;
}

/* Card Tag Pill */
.showcase-card-tag {
  position: absolute;
  top: clamp(16px, 2.2vh, 26px);
  left: clamp(16px, 2vw, 28px);
  background-color: var(--color-card-bg, #D9D9D9);
  border: 2.2px solid var(--color-orange, #FF5E2A);
  border-radius: 9999px;
  min-width: clamp(100px, 10vw, 150px);
  min-height: clamp(38px, 4.8vh, 52px);
  padding: clamp(6px, 1vh, 10px) clamp(18px, 1.8vw, 28px);
  font-family: var(--font-family);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: var(--card-tag-weight, 600);
  color: var(--color-card-tag-text, #1E1E1E);
  letter-spacing: var(--card-tag-spacing, -0.01em);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(255, 94, 42, 0.1);
}



/* ==========================================================
   Navigation Bar (Expanded to Red Box Size)
   ========================================================== */
.navbar {
  height: var(--nav-height);
  padding: 0 var(--padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-orange);
  background-color: var(--color-white);
  position: relative;
  z-index: 50;
  flex-shrink: 0;
}

.nav-brand {
  width: 100px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  list-style: none;
}

.nav-link {
  font-size: clamp(19px, 1.55vw, 25px);
  font-weight: var(--nav-link-weight, 500);
  color: var(--color-text-dark);
  letter-spacing: var(--nav-link-spacing, -0.01em);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-orange);
}

/* "Lets Connect" Enlarged Solid Button matching Red Box */
.btn-nav-connect {
  background-color: var(--color-orange);
  color: var(--color-white);
  font-size: clamp(18px, 1.45vw, 24px);
  font-weight: var(--nav-cta-weight, 500);
  padding: clamp(13px, 1.9vh, 18px) clamp(26px, 2.6vw, 44px);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: var(--nav-cta-spacing, -0.01em);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 94, 42, 0.25);
}

.btn-nav-connect:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 94, 42, 0.35);
}

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.mobile-toggle .bar {
  height: 2.5px;
  width: 100%;
  background-color: var(--color-text-dark);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ==========================================================
   Hero Section (Expanded to Yellow Box Size & Outward Arrows)
   ========================================================== */
.main-content {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(32px, 5vh, 60px) var(--padding-x) 10px var(--padding-x); /* 10px gap below buttons */
  overflow: visible;
  height: auto;
}

/* Left Hero Content */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 1080px;
  margin-top: clamp(16px, 2.8vh, 32px);
}

/* Marked Section: Bottom ends at the blue box bottom right above the buttons */
.hero-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: clamp(24px, 3.6vh, 36px);
}

/* Subtitle: "Wadding paper" */
.hero-eyebrow {
  color: var(--color-orange);
  font-family: var(--font-family);
  font-style: italic;
  font-weight: var(--hero-eyebrow-weight, 400);
  font-size: var(--hero-eyebrow-size, clamp(2.2rem, 3.4vw, 50px));
  line-height: 1.15;
  letter-spacing: var(--hero-eyebrow-spacing, -0.015em);
  margin-bottom: 12px;
}

/* Headline: "To Tell Storyes" */
.hero-title {
  color: var(--color-orange);
  font-family: var(--font-family);
  font-weight: var(--hero-title-weight, 800);
  font-size: var(--hero-title-size, clamp(6.5rem, 12.8vw, 198px));
  line-height: 0.88;
  letter-spacing: var(--hero-title-spacing, -0.04em);
  margin: 0;
  display: flex;
  flex-direction: column;
}

.hero-title .title-line {
  display: block;
}

/* CTA Pill Buttons: Sits 10px above the second section */
.hero-cta-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(20px, 2.2vw, 32px);
  flex-wrap: nowrap;
  margin-top: 4px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.btn-pill {
  height: clamp(52px, 7vh, 66px);
  padding: 0 clamp(30px, 2.8vw, 48px);
  border: 2.2px solid var(--color-orange);
  border-radius: 9999px;
  font-family: var(--font-family);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: var(--hero-cta-weight, 500);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: var(--hero-cta-spacing, -0.01em);
  line-height: 1;
  text-align: center;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-pill:hover {
  background-color: var(--color-orange);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 94, 42, 0.3);
}

.btn-pill:active {
  transform: translateY(0);
}

/* Right Section - Clean open space */
.hero-right {
  min-height: 150px;
}

/* ==========================================================
   Responsive Adaptations (Small Screen / Mobile Fallback)
   ========================================================== */
@media (max-height: 600px), (max-width: 900px) {
  html, body {
    height: auto;
  }

  .page-container {
    height: auto;
    min-height: 100vh;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .hero-right {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 2px solid var(--color-orange);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-menu.is-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 24px;
  }

  .btn-nav-connect {
    width: 100%;
  }

  .mobile-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }
  .mobile-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
  }

  /* Paper ball & story messages on tablet */
  .paper-ball-actor {
    width: clamp(220px, 46vw, 420px);
  }

  .story-message-box {
    width: 88vw;
    max-width: 88vw;
  }

  .story-message-text {
    font-size: clamp(28px, 5.2vw, 48px);
  }

  /* Showcase Cards 1:1 Aspect Ratio on Mobile & Tablet */
  .showcase-cards-wrapper {
    align-items: flex-start;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .showcase-cards-track {
    align-items: flex-start;
    height: auto;
    gap: 18px;
  }

  .showcase-card-col {
    display: contents;
  }

  .showcase-card {
    width: min(84vw, calc(100dvh - 180px));
    max-width: min(84vw, calc(100dvh - 180px));
    height: auto;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: var(--card-radius, 28px);
  }
}

@media (max-width: 520px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-pill {
    width: 100%;
    text-align: center;
  }

  .paper-ball-actor {
    width: clamp(170px, 48vw, 260px);
  }

  .story-message-box {
    width: 92vw;
    max-width: 92vw;
  }

  .story-message-text {
    font-size: clamp(24px, 6.2vw, 36px);
    line-height: 1.2;
  }

  .showcase-overlay {
    padding: 16px 16px 16px;
  }

  /* Mobile: Heading gets full top width, Navigation buttons moved down to bottom-right (next to 'story') */
  .showcase-header {
    position: relative;
    display: block;
    margin-bottom: 14px;
    width: 100%;
  }

  .showcase-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(19px, 5.2vw, 24px);
    line-height: 1.15;
    margin: 0;
    padding-right: 96px;
    box-sizing: border-box;
  }

  .showcase-controls {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    z-index: 50;
    pointer-events: auto;
  }

  .showcase-nav-btn {
    width: 42px;
    height: 42px;
    cursor: pointer;
    touch-action: manipulation;
    z-index: 51;
    position: relative;
    pointer-events: auto;
  }

  .showcase-nav-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
  }

  .showcase-cards-track {
    gap: 16px;
  }

  .showcase-card {
    width: min(84vw, calc(100dvh - 170px));
    max-width: min(84vw, calc(100dvh - 170px));
    height: auto;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: var(--card-radius, 28px);
  }
}

/* Toast feedback notification */
.toast-feedback {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: #1E1E1E;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

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

.page-back-btn {
  position: fixed;
  top: 24px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.8px solid var(--color-orange, #FF5E2A);
  color: var(--color-orange, #FF5E2A);
  padding: 8px 18px;
  border-radius: 9999px;
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.22s ease;
}

.page-back-btn:hover {
  background: var(--color-orange, #FF5E2A);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 94, 42, 0.28);
}

.page-back-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================
   Page 3: White Background, 16:9 Cards & Statistics Row
   Layout matches specification:
   - "Thumbnail" (Orange bold title)
   - "Radio Mirchi" (Orange subtitle)
   - 16:9 Aspect Ratio Cards Carousel with peeking sides
   - Bottom Stats Row (100k Views, 4–5 CTA, 10 Projects)
   ========================================================== */
.page-third {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-white, #FFFFFF);
  color: var(--color-text-dark, #1E1E1E);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(24px, 3.5vh, 48px) 0 clamp(24px, 3.5vh, 44px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Page 3 Sticky Scroll Track - Enables smooth vertical scroll-driven horizontal card timeline */
.page-third--scroll-track {
  height: 350vh;
  position: relative;
  background-color: var(--color-white, #FFFFFF);
  padding: 0;
  display: block;
  overflow: visible !important;
}

.page3-sticky-viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(24px, 3.5vh, 48px) 0 clamp(24px, 3.5vh, 44px);
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--color-white, #FFFFFF);
}

/* Page 3 Header - Expanded outwards per user annotation (green box with 4 diagonal arrows) */
.page3-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(14px, 2.5vh, 32px);
  flex-shrink: 0;
  width: 100%;
  max-width: 1400px;
  padding: 0 clamp(20px, 4vw, 60px);
  box-sizing: border-box;
  transition: opacity 0.4s ease;
}

.page3-title {
  font-family: var(--font-family);
  color: var(--color-orange, #FF5E2A);
  font-size: clamp(52px, 7.8vw, 102px);
  font-weight: var(--hero-title-weight, 800);
  letter-spacing: var(--hero-title-spacing, -0.04em);
  line-height: 1.04;
  margin: 0 0 10px 0;
  text-align: center;
}

.page3-subtitle {
  font-family: var(--font-family);
  color: var(--color-orange-bg, #FF6730);
  font-size: clamp(24px, 3.3vw, 46px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  text-align: center;
}

/* Page 3 16:9 Cards Section - Spreads outward to red boxes */
.page3-cards-container {
  width: 100%;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: auto 0;
  flex: 1;
  min-height: 0;
  overflow: visible;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When the scroll ends, the cards recede ("the image end") */
.page3-cards-container.page3-cards--ended {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.page3-cards-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 0;
  box-sizing: border-box;
}

.page3-cards-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(24px, 3.5vw, 56px);
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.18, 1, 0.32, 1);
  width: max-content;
  box-sizing: border-box;
  user-select: none;
  position: relative;
  left: 0;
}

/* All cards aspect ratio is strictly 16:9 */
.page3-card {
  width: clamp(340px, 48vw, 780px);
  aspect-ratio: 16 / 9;
  background-color: var(--color-card-bg, #D9D9D9);
  border-radius: var(--card-radius, 28px);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.45s cubic-bezier(0.18, 1, 0.32, 1), opacity 0.45s ease, box-shadow 0.45s ease;
  cursor: pointer;
  box-sizing: border-box;
  opacity: 0.85;
  transform: scale(0.92);
}

.page3-card.page3-card--active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  cursor: default;
}

.page3-card:not(.page3-card--active):hover {
  opacity: 0.98;
  transform: scale(0.95);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12);
}

.page3-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: inherit;
  overflow: hidden;
}

.page3-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.page3-card.page3-card--active:hover .page3-card-img {
  transform: scale(1.02);
}

.page3-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e4e4e4 0%, #cfcfcf 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}

/* Carousel Side Navigation Buttons */
.page3-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(48px, 4vw, 62px);
  height: clamp(48px, 4vw, 62px);
  border-radius: 50%;
  border: 2px solid var(--color-orange, #FF5E2A);
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-orange, #FF5E2A);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.22s ease;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  outline: none;
  padding: 0;
}

.page3-nav-btn:hover {
  background: var(--color-orange, #FF5E2A);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 28px rgba(255, 94, 42, 0.35);
}

.page3-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  display: block;
}

.page3-nav-btn--prev {
  left: clamp(20px, 3.5vw, 64px);
}

.page3-nav-btn--next {
  right: clamp(20px, 3.5vw, 64px);
}

/* Page 3 Statistics Wrapper - Transitions to front/center of screen at scroll end */
.page3-stats-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.65s cubic-bezier(0.18, 1, 0.32, 1), opacity 0.65s ease;
  z-index: 50;
  margin-top: clamp(16px, 2.5vh, 36px);
  flex-shrink: 0;
}

/* When the scroll ends, the green marked section appears in the front of the screen */
.page3-stats-wrapper.page3-stats--front {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.28);
  margin-top: 0;
  width: auto;
}

.page3-stats-wrapper.page3-stats--front .page3-stats {
  gap: clamp(48px, 10vw, 130px);
  padding: 28px clamp(36px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 36px;
  box-shadow: 0 24px 70px rgba(255, 94, 42, 0.16), 0 10px 36px rgba(0, 0, 0, 0.08);
  border: 2.5px solid rgba(255, 94, 42, 0.3);
  margin-top: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: page3PulseGlow 2.5s infinite ease-in-out;
}

@keyframes page3PulseGlow {
  0%, 100% {
    box-shadow: 0 24px 70px rgba(255, 94, 42, 0.16), 0 10px 36px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 94, 42, 0.3);
  }
  50% {
    box-shadow: 0 28px 85px rgba(255, 94, 42, 0.28), 0 12px 42px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 94, 42, 0.55);
  }
}

.page3-stats-wrapper.page3-stats--front .page3-stat-value {
  font-size: clamp(44px, 5.8vw, 76px);
  color: var(--color-orange, #FF5E2A);
  text-shadow: 0 4px 20px rgba(255, 94, 42, 0.18);
}

.page3-stats-wrapper.page3-stats--front .page3-stat-label {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  color: #1E1E1E;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Page 3 Statistics Row */
.page3-stats {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(36px, 8vw, 110px);
  width: 100%;
  padding: 0 clamp(20px, 4vw, 60px);
  box-sizing: border-box;
  transition: all 0.5s ease;
}

.page3-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page3-stat-value {
  font-family: var(--font-family);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  color: var(--color-text-dark, #1E1E1E);
  line-height: 1;
  margin: 0 0 6px 0;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition: all 0.4s ease;
}

.page3-stat-label {
  font-family: var(--font-family);
  font-size: clamp(14px, 1.3vw, 19px);
  font-weight: 400;
  color: var(--color-text-dark, #1E1E1E);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: all 0.4s ease;
}

@media (max-width: 768px) {
  .page-back-btn {
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 0.82rem;
  }
  .page-third {
    padding: 12px 0 20px;
    justify-content: flex-start;
  }
  .page3-header {
    padding: 0 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
  }
  .page3-title {
    font-size: clamp(38px, 9.5vw, 50px);
    margin: 0 0 2px 0;
    line-height: 1.05;
  }
  .page3-subtitle {
    font-size: clamp(18px, 4.8vw, 24px);
    margin: 0;
    line-height: 1.15;
  }
  .page3-cards-container {
    flex: none;
    margin: 6px 0 0 0;
    width: 100%;
  }
  .page3-cards-wrapper {
    padding: 8px 0;
  }
  .page3-cards-track {
    gap: 16px;
  }
  .page3-card {
    width: 82vw;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }
  .page3-nav-btn {
    width: 42px;
    height: 42px;
  }
  .page3-nav-btn--prev {
    left: 10px;
  }
  .page3-nav-btn--next {
    right: 10px;
  }
  .page3-nav-btn svg {
    width: 20px;
    height: 20px;
  }
  .page-scroll-track + .page-third--scroll-track {
    position: relative;
    z-index: 30;
    margin-top: var(--mobile-p3-top-offset, calc(-100dvh + 155px + min(84vw, calc(100dvh - 170px))));
  }
  .page-third--scroll-track {
    height: 300vh;
  }
  .page3-sticky-viewport {
    padding: 12px 0 20px;
    justify-content: flex-start;
  }
  .page3-stats-wrapper.page3-stats--front {
    transform: translate(-50%, -50%) scale(1.05);
    width: 92vw;
  }
  .page3-stats-wrapper.page3-stats--front .page3-stats {
    gap: clamp(16px, 5vw, 32px);
    padding: 22px 16px;
    border-radius: 24px;
  }
  .page3-stat-label {
    font-size: 14px;
  }
}
