/* =============================================
   PACKTECH — ABOUT PAGE STYLES
   ============================================= */

/* ─── HERO SECTION ──────────────────────────── */
.about-hero {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  /* keep hero clipped */
  padding-top: 80px;
  z-index: 10;
  margin-bottom: -1px;
  /* seamless join, no gap */
}

/* Background */
.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  /* show bottom portion of image */
  transform: scale(1.08);
  animation: kenBurns 22s infinite alternate ease-in-out;
  will-change: transform;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.08) translate(0, 0);
  }

  100% {
    transform: scale(1.16) translate(-1.5%, -1.5%);
  }
}

/* Dark gradient overlay – fades to cream at bottom so it blends into next section */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.52) 0%,
      rgba(0, 0, 0, 0.25) 60%,
      rgba(0, 0, 0, 0.50) 100%);
}

/* Content wrapper */
.hero-inner {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 1100px;
  width: 100%;
  padding: 0 40px;
}

/* Breadcrumb */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.breadcrumb.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.25s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  opacity: 0.45;
}

.breadcrumb .cur {
  color: #fff;
  font-weight: 700;
}

/* Title wrap + torn-shape */
.title-wrap {
  position: relative;
  display: inline-block;
  margin: 30px 0;
  /* Vertical margin to clear tagline and divider */
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.title-wrap:hover {
  transform: scale(1.04) rotate(-0.8deg);
}

.torn-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  width: 120%;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.hero-tagline {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 50px;
  /* Increased margin */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  text-transform: uppercase;
  color: #1a0d05;
  margin: 0;
  line-height: 1;
  position: relative;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px auto 30px;
  /* Increased top margin */
  max-width: 450px;
}

.divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  flex-grow: 1;
}

.divider-icon {
  color: #fff;
  font-size: 1rem;
  opacity: 0.8;
}

.hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.80);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 1s ease 0.8s;
}

.scroll-indicator.is-visible {
  opacity: 1;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 7px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2.2s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% {
    opacity: 0;
    top: 7px;
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    top: 20px;
  }
}

/* Wave divider – Added as a masked element to match design */
.about-hero::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  width: 100%;
  height: 50px;
  /* Reduced height to be less intrusive */
  background-color: #F8EDDE;
  -webkit-mask-image: url('../image/asset/TORN.png');
  mask-image: url('../image/asset/TORN.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  z-index: 6;
}


/* ─── CRAFTING TRUST SECTION ─────────────────── */
.crafting-trust {
  position: relative;
  background-color: #F8EDDE;
  padding: 140px 0 110px;
  z-index: 5;
  overflow: hidden;
}

.ct-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}

.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}


/* ── Left Column ── */
.ct-left {
  display: flex;
  flex-direction: column;
}

/* Logo */
.ct-logo {
  width: 90px;
  height: auto;
  margin-bottom: 28px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.ct-logo:hover {
  transform: scale(1.07);
  filter: drop-shadow(0 4px 12px rgba(26, 13, 5, 0.22));
}

/* Main title */
.ct-title {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  color: #1a0d05;
  line-height: 1;
  margin-bottom: 18px;
}

/* Since badge */
.since-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
  cursor: default;
  padding: 6px 12px;
  /* The tron4.png is set as a CSS background so it never overflows */
  background-image: url('../image/asset/tron4.png');
  background-size: 110% 110%;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.since-wrap:hover {
  transform: scale(1.06) rotate(-1deg);
}

/* Hide the <img> since-bg — we now use CSS background instead */
.since-bg {
  display: none;
}

.since-text {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: #5a3520;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  display: block;
  padding: 4px 8px;
}

/* Body text */
.ct-lead {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #3d2010;
  line-height: 1.5;
  margin-bottom: 24px;
}

.ct-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  color: #5a3520;
  line-height: 1.75;
  margin-bottom: 18px;
}

.ct-body strong {
  color: #1a0d05;
  font-weight: 700;
}


/* ── Right Column ── */
.ct-right {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.ct-img-wrap {
  position: relative;
  border-radius: 6px;
  overflow: visible;
}

.ct-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}

.ct-img-wrap:hover .ct-photo {
  transform: scale(1.03) translateY(-4px);
}

/* Tape strip (tl only) */
.tape {
  position: absolute;
  background: rgba(210, 185, 150, 0.75);
  backdrop-filter: blur(2px);
  z-index: 5;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.ct-img-wrap:hover .tape {
  opacity: 0.55;
}

.tape-tl {
  width: 110px;
  height: 36px;
  top: -14px;
  left: 14px;
  transform: rotate(-12deg);
  border-radius: 3px;
}

/* Info box */
.ct-info-box {
  background: rgba(255, 255, 255, 0.35);
  border-left: 4px solid #5a3520;
  border-radius: 4px;
  padding: 28px 30px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ct-info-box:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(90, 53, 32, 0.10);
}

.ct-info-box p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #3d2010;
  line-height: 1.72;
}

.ct-info-box strong {
  color: #1a0d05;
  font-weight: 700;
}

/* Decorative vertical text */
.ct-brand-text {
  position: absolute;
  right: 0;
  top: 100%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: 'Paytone One', sans-serif;
  font-size: 13vw;
  color: transparent;
  -webkit-text-stroke: 2px #6A2900;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}


/* ─── ANIMATION UTILITIES ─────────────────────── */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.anim-fade-left {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.a-delay-1 {
  transition-delay: 0.10s;
}

.a-delay-2 {
  transition-delay: 0.20s;
}

.a-delay-3 {
  transition-delay: 0.30s;
}

.a-delay-4 {
  transition-delay: 0.40s;
}

.a-delay-5 {
  transition-delay: 0.50s;
}

.a-delay-6 {
  transition-delay: 0.60s;
}


/* ─── RESPONSIVE ──────────────────────────────── */

/* Large Tablet */
@media (max-width: 1200px) {
  .ct-brand-text {
    font-size: 16vw;
  }

  .ct-grid {
    gap: 56px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .about-hero {
    height: 65vh;
    margin-bottom: -60px;
  }

  .ct-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .ct-brand-text {
    display: none;
  }

  .ct-right {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .ct-img-wrap {
    flex: 1 1 55%;
  }

  .ct-info-box {
    flex: 1 1 38%;
    align-self: flex-end;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .about-hero {
    height: 55vh;
    min-height: 420px;
    margin-bottom: -45px;
  }

  .hero-inner {
    padding: 0 22px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .torn-shape {
    width: 170%;
  }

  .hero-wave {
    height: 60px;
  }

  .crafting-trust {
    padding: 110px 0 80px;
  }

  .ct-container {
    padding: 0 24px;
  }

  .ct-grid {
    gap: 40px;
  }

  .ct-right {
    flex-direction: column;
  }

  .ct-title {
    font-size: 3rem;
  }

  .since-text {
    font-size: 2rem;
  }

  .tape-br {
    display: none;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .about-hero {
    height: 52vh;
    margin-bottom: -35px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .torn-shape {
    width: 190%;
  }

  .hero-wave {
    height: 50px;
  }

  .crafting-trust {
    padding: 90px 0 60px;
  }

  .ct-container {
    padding: 0 18px;
  }

  .ct-title {
    font-size: 2.5rem;
  }

  .since-text {
    font-size: 1.7rem;
  }

  .ct-lead {
    font-size: 1rem;
  }

  .ct-body {
    font-size: 0.93rem;
  }
}

/* =============================================
   STATS + OUR STORY SECTION
   ============================================= */

.stats-story {
  position: relative;
  z-index: 4;
}

/* -- Stats Bar -- */
.stats-bar {
  position: relative;
  background-color: #F8EDDE;
  padding: 55px 48px 0;
  /* no bottom padding — mountain sits flush */
  z-index: 3;
}

.stats-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 50px;
  text-align: center;
}

.stat-item+.stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  cursor: default;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

/* Number + suffix on the same line */
.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  line-height: 1;
}

.stat-number {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: #fff;
  line-height: 1;
  display: inline-block;
}

.stat-suffix {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* Brown mountain shape at BOTTOM of stats-bar – overlaps into factory image */
.stats-bottom-shape {
  position: absolute;
  bottom: -11rem;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: -1;
  pointer-events: none;
}

.stats-bottom-shape img {
  width: 100%;
  height: auto;
  display: block;
}

/* -- Our Story Panel -- */
.our-story-panel {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 2;
  background: transparent;
  /* no bg color — factory image only */
  margin-top: 60px;
  /* slides up behind the brown stats bar + mountain */
}

.story-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.story-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: sepia(60%) brightness(0.7);
  transform: scale(1.05);
  animation: kenBurns 25s infinite alternate ease-in-out;
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.20) 50%, rgba(248, 237, 222, 0.60) 100%);
}

.story-content {
  position: relative;
  z-index: 5;
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 110px 40px 40px;
  /* clears the mountain height */
}

.story-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  margin-bottom: 18px;
  display: block;
}

.story-title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

.story-title-wrap:hover {
  transform: scale(1.03);
}

.story-torn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.15);
  width: 120%;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0.95;
}

.story-title {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: #6A3520;
  margin: 0;
  line-height: 1.1;
  position: relative;
  padding: 8px 20px;
}

.story-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 420px;
  margin: 0 auto;
}

.story-divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  flex-grow: 1;
}

.story-divider-icon {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

/* -- Responsive -- */
@media (max-width: 900px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 15px;
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

  .stats-bar {
    padding: 40px 20px 0;
  }

  .stats-bottom-shape {
    bottom: -6rem;
  }

  .our-story-panel {
    height: auto;
    min-height: 400px;
    margin-top: 40px;
  }

  .story-content {
    padding: 80px 24px 40px;
  }
}

@media (max-width: 600px) {

  .stat-number,
  .stat-suffix {
    font-size: 2.2rem;
  }

  .our-story-panel {
    height: auto;
    min-height: 350px;
    margin-top: 20px;
  }

  .story-content {
    padding: 60px 20px 40px;
  }

  .story-title {
    font-size: 1.8rem;
  }

  .story-torn {
    width: 170%;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 15px;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .stats-bottom-shape {
    bottom: -12rem;
  }

  .stats-bottom-shape img {
    height: 80vh;
  }
}