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

:root {          
  --orange: #e05a1e;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

/* ================= HERO INTRO ================= */   
.history-intro {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.history-intro-orb {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(224, 90, 30, 0.09) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  pointer-events: none;
  animation: orbPulse 7s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes orbPulse {
  from {
    transform: translate(-50%, -52%) scale(1);
    opacity: 0.7;
  }
  to {
    transform: translate(-50%, -52%) scale(1.15);
    opacity: 1;
  }
}

/* large ghost text */
.history-intro-ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  font-family: "Syne", sans-serif;
  font-size: 22vw;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
  letter-spacing: -6px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.history-intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.history-intro-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.history-intro-eyebrow span {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
}
.history-intro-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--orange);
  opacity: 0.6;
}

.history-intro-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -4px;
  margin-bottom: 32px;
}
.history-intro-title .t-line {
  display: block;
  overflow: hidden;
}
.history-intro-title .t-inner {
  display: block;
  background: linear-gradient(155deg, #fff 40%, rgba(255, 255, 255, 0.35));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.history-intro-title .t-orange {
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
}

.history-intro-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 52px;
}

/* span count pills */
.history-intro-meta {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
}
.history-meta-pill {
  padding: 14px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.history-meta-pill:last-child {
  border-right: none;
}
.history-meta-num {
  font-family: "Syne", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.history-meta-num span {
  font-size: 12px;
  color: var(--orange);
}
.history-meta-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* scroll hint */
.intro-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.3;
  pointer-events: none;
}
.intro-scroll span {
  font-size: 10px;
  letter-spacing: 2.5px;
}
.intro-scroll-line {
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7) translateY(-4px);
  }
  50% {
    opacity: 0.9;
    transform: scaleY(1) translateY(4px);
  }
}

/* ================= TIMELINE STAGE ================= */
.timeline-wrapper {
  position: relative;
  background: #000;
}

/* sticky outer â€” pins the stage while horizontal scroll happens */
.timeline-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---- TOP PROGRESS BAR ---- */
.tl-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 50;
}
.tl-progress-fill {
  height: 100%;
  background: var(--orange);
  width: 0%;
  transition: width 0.05s linear;
  position: relative;
}
.tl-progress-fill::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(224, 90, 30, 0.8);
}

/* ---- ERA COUNTER ---- */
.tl-era-counter {
  position: absolute;
  top: 18px;
  right: 40px;
  z-index: 50;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 2px;
  font-family: "Syne", sans-serif;
}
.tl-era-counter strong {
  color: #fff;
  font-size: 13px;
}

/* ---- NAV ARROWS ---- */
.tl-nav {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 50;
  display: flex;
  gap: 10px;
}
.tl-nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition:
    border-color 0.3s,
    background 0.3s,
    color 0.3s,
    transform 0.35s var(--ease-spring);
  user-select: none;
}
.tl-nav-btn:hover {
  border-color: var(--orange);
  background: rgba(224, 90, 30, 0.1);
  color: #fff;
  transform: scale(1.08);
}
.tl-nav-btn:active {
  transform: scale(0.96);
}
.tl-nav-btn.disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* ---- KEYBOARD HINT ---- */
.tl-key-hint {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1.5px;
  pointer-events: none;
}
.key-badge {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 3px 8px;
  font-family: "Syne", sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
}

/* ---- STAGE AREA ---- */
.tl-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 80px 100px;
  padding-top: 72px;
}

/* ---- YEAR GHOST ---- */
.tl-year-ghost {
  position: absolute;
  font-family: "Syne", sans-serif;
  font-size: 28vw;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.025);
  letter-spacing: -8px;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.6s var(--ease-out);
  white-space: nowrap;
}

/* ---- SLIDE TRACK (clipped, JS moves it) ---- */
.tl-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

/* ---- INDIVIDUAL SLIDES ---- */
.tl-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  will-change: transform, opacity;
  transition:
    transform 0.75s var(--ease-spring),
    opacity 0.5s var(--ease-out);
}

/* states */
.tl-slide[data-state="active"] {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.tl-slide[data-state="prev"] {
  transform: translateX(-65%) scale(0.88);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.tl-slide[data-state="next"] {
  transform: translateX(65%) scale(0.88);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.tl-slide[data-state="far-prev"] {
  transform: translateX(-120%) scale(0.75);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.tl-slide[data-state="far-next"] {
  transform: translateX(120%) scale(0.75);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* ---- SLIDE LEFT: IMAGE ---- */
.tl-slide-img {
  position: relative;
}
.tl-img-frame {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.4s;
}
.tl-slide[data-state="active"] .tl-img-frame {
  border-color: rgba(224, 90, 30, 0.2);
}
.tl-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tl-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.tl-img-placeholder svg {
  opacity: 0.25;
}

/* era label on image */
.tl-img-era-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

/* glow under image */
.tl-img-glow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60px;
  background: radial-gradient(
    ellipse,
    rgba(224, 90, 30, 0.18),
    transparent 70%
  );
  opacity: 0.6; /* blur removed for perf */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.tl-slide[data-state="active"] .tl-img-glow {
  opacity: 1;
}

/* ---- SLIDE RIGHT: CONTENT ---- */
.tl-slide-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* year display */
.tl-year {
  font-family: "Syne", sans-serif;
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -4px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  margin-bottom: 6px;
  transition:
    -webkit-text-stroke 0.4s,
    color 0.4s;
}
.tl-slide[data-state="active"] .tl-year {
  -webkit-text-stroke: 1px rgba(224, 90, 30, 0.6);
}

/* event label */
.tl-event-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-event-label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--orange);
  opacity: 0.7;
}

/* headline */
.tl-headline {
  font-family: "Syne", sans-serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}
.tl-headline span {
  color: var(--orange);
}

/* body text */
.tl-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 28px;
}

/* tags row */
.tl-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.2px;
  transition: border-color 0.3s;
}
.tl-tag.orange {
  background: rgba(224, 90, 30, 0.08);
  border-color: rgba(224, 90, 30, 0.25);
  color: var(--orange);
}
.tl-tag::before {
  content: "â—†";
  font-size: 6px;
  color: var(--orange);
}

/* ---- DOT RAIL ---- */
.tl-dot-rail {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 50;
}

.tl-dot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0 10px;
  position: relative;
}

/* connecting line between dots */
.tl-dot-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(50% + 6px);
  width: calc(100% - 12px);
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.4s;
}
.tl-dot-item.passed:not(:last-child)::after {
  background: rgba(224, 90, 30, 0.4);
}

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition:
    background 0.35s,
    border-color 0.35s,
    transform 0.4s var(--ease-spring),
    box-shadow 0.35s;
}
.tl-dot-item.active .tl-dot {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.6);
  box-shadow: 0 0 16px rgba(224, 90, 30, 0.6);
}
.tl-dot-item.passed .tl-dot {
  background: rgba(224, 90, 30, 0.4);
  border-color: rgba(224, 90, 30, 0.5);
}
.tl-dot-item:hover .tl-dot {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.3);
}

.tl-dot-year {
  font-family: "Syne", sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
  transition: color 0.3s;
  white-space: nowrap;
}
.tl-dot-item.active .tl-dot-year {
  color: var(--orange);
}
.tl-dot-item.passed .tl-dot-year {
  color: rgba(255, 255, 255, 0.35);
}

/* ================= FOOTER CTA ================= */

/* ================= TOUCH SWIPE HINT ================= */
@media (pointer: coarse) {
  .tl-key-hint {
    display: none;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .tl-slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 28px;
    padding: 0 24px;
  }
  .tl-slide-img {
    display: none;
  }
  .tl-stage {
    padding: 80px 24px 100px;
  }
  .tl-year {
    font-size: 52px;
  }
  .tl-headline {
    font-size: 22px;
  }

  .tl-dot-year {
    display: none;
  }
  .tl-dot-rail {
    gap: 0;
  }
  .tl-dot-item {
    padding: 0 6px;
  }
}

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

/* ================================================================
   MOBILE BRIGHTNESS + PREMIUM POLISH  (auto-generated)
   Hard hex values â€” correct at ANY screen brightness level
================================================================ */
@media (max-width: 768px) {
  /* CARD BACKGROUNDS */
  .why-card,
  .infra-stat-box,
  .infra-floor,
  .quality-pillar,
  .story-img-cell,
  .explore-card,
  .pl-card,
  .bake-card,
  .ind-card,
  .machine-card,
  .blog-card,
  .timeline-card,
  .featured-card,
  .stat-block,
  .r-card,
  .t-card,
  .pkg-card,
  .pkg-info-card,
  .pkg-manpower-card,
  .contact-info-card,
  .post-sidebar-box,
  .flow-step-box,
  .iot-card,
  .infra-img-main,
  .tl-img-frame,
  .why-features .why-card,
  .cert-grid .cert-card,
  .export-panel,
  .r-card,
  .rating-callout {
    background: #1e1e1e;
    border-color: #3a3a3a;
  }

  /* BODY / DESCRIPTION TEXT */
  .why-card p,
  .infra-floor-body,
  .infra-floor-detail,
  .infra-intro,
  .quality-intro,
  .quality-pillar-body-inner li,
  .quality-pillar-sub,
  .story-body-text p,
  .explore-card-desc,
  .explore-header-sub,
  .about-hero-desc,
  .section-body,
  .why-header-right p,
  .pl-card-desc,
  .pl-hero-sub,
  .pl-card-flow span,
  .machine-card-desc,
  .bake-card-desc,
  .blog-card-excerpt,
  .blog-card-subtitle,
  .featured-desc,
  .timeline-desc,
  .tl-body,
  .r-quote,
  .t-card-quote,
  .pkg-desc,
  .pkg-info-sub,
  .line-meta-text,
  .post-content p,
  .detail-desc,
  .hero-desc,
  .page-sub,
  .csa-sub,
  .ind-sub,
  .bake-sub,
  .about-body,
  .process-sub,
  .cta-sub,
  .card-models,
  .card-count,
  .terms-clause-body p,
  .pp-section p,
  .pp-list li,
  .contact-subtitle,
  .footer-tagline,
  .blog-hero-desc,
  .step-label,
  .cta-sub {
    color: #cccccc;
  }

  /* SECONDARY / LABEL TEXT */
  .about-hero-stat-label,
  .infra-stat-box-label,
  .pl-stat-label,
  .csa-stat-l,
  .stat-label,
  .t-stat-label,
  .pkg-info-label,
  .pkg-manpower-label,
  .card-cat,
  .section-eyebrow,
  .line-hero-eyebrow,
  .flow-step-num,
  .blog-card-date,
  .post-hero-date,
  .r-loc,
  .t-card-loc,
  .cert-milestone-label,
  .line-nav-prev-hint,
  .line-nav-next-hint,
  .contact-info-label,
  .breadcrumb,
  .breadcrumb a,
  .back-btn,
  .pkg-machine-note {
    color: #aaaaaa;
  }

  /* CARD TITLES */
  .why-card h3,
  .infra-floor-name,
  .quality-pillar-title,
  .explore-card-title,
  .pl-card-name,
  .machine-card-name,
  .bake-card-name,
  .blog-card-title,
  .featured-name,
  .timeline-event-name,
  .tl-headline,
  .t-card-name,
  .pkg-card-name,
  .card-name,
  .cta-title,
  .models-cta-text h4,
  .iot-card-title,
  .contact-info-value {
    color: #ffffff;
    font-size: 15px;
  }

  /* STAT NUMBERS */
  .about-hero-stat-num,
  .infra-stat-box-num,
  .pl-stat-num,
  .csa-stat-n,
  .stat-num,
  .t-stat-num,
  .pkg-info-value,
  .pkg-manpower-value,
  .history-meta-num,
  .rating-big {
    color: #ffffff;
    font-size: 24px;
  }

  /* PILL / TAG CHIPS */
  .pl-card-capacity,
  .pl-card-machine-tag,
  .infra-badge,
  .line-meta-badge,
  .tl-tag,
  .model-tag,
  .card-tag,
  .pkg-tag,
  .pkg-material,
  .detail-tag,
  .filter-pill,
  .filter-btn {
    background: #252525;
    border-color: #3d3d3d;
    color: #cccccc;
  }

  /* SECTION TITLES */
  .section-title,
  .pl-lines-title,
  .pl-overview-title,
  .bake-title,
  .ind-title,
  .about-title,
  .featured-title,
  .timeline-title,
  .t-hero-title {
    font-size: clamp(28px, 7vw, 40px);
  }

  /* FLOW */
  .flow-step-name {
    color: #ffffff;
  }
  .flow-step-box {
    background: #1e1e1e;
    border-color: #3a3a3a;
  }

  /* FOOTER */
  .footer-col ul li a {
    color: #aaaaaa;
  }
  .footer-col h4.footer-col-title {
    color: #888888;
  }
  .footer-address {
    color: #aaaaaa;
  }
  .footer-bottom span,
  .footer-bottom-links a {
    color: #666666;
  }

  /* TESTIMONIALS */
  .t-card-quote,
  .r-quote {
    color: #cccccc;
  }
  .cert-milestone-year {
    color: #888888;
  }

  /* PACKAGES */
  .pkg-machine-name {
    color: #eeeeee;
  }
  .pkg-capacity-row span {
    color: #cccccc;
  }
  .pkg-capacity-row span:first-child {
    color: #eeeeee;
  }
  .pkg-note,
  .pkg-desc {
    color: #cccccc;
  }

  /* BLOG */
  .post-related-title {
    color: #cccccc;
  }

  /* MACHINE / MODEL */
  .detail-desc,
  .iot-card-desc,
  .right-sub,
  .models-cta-text p {
    color: #cccccc;
  }
  .specs-table td:first-child {
    color: #aaaaaa;
  }
  .specs-table td:last-child {
    color: #eeeeee;
  }

  /* PRIVACY / TERMS */
  .terms-notice,
  .pp-note {
    color: #cccccc;
  }
}

@media (max-width: 480px) {
  .pl-card-name,
  .machine-card-name,
  .bake-card-name,
  .why-card h3,
  .explore-card-title {
    font-size: 14px;
  }
  .section-title,
  .pl-lines-title {
    font-size: clamp(26px, 8vw, 34px);
  }
}

/* ================================================================
   PREMIUM MICRO-ANIMATIONS (auto-generated)
   Smooth, tasteful â€” respects prefers-reduced-motion
================================================================ */

/* Scroll reveal base */
.reveal,
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible,
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.stagger-1 {
  transition-delay: 0.08s;
}
.stagger-2 {
  transition-delay: 0.16s;
}
.stagger-3 {
  transition-delay: 0.24s;
}
.stagger-4 {
  transition-delay: 0.32s;
}
.stagger-5 {
  transition-delay: 0.4s;
}
.stagger-6 {
  transition-delay: 0.48s;
}

/* Card hover lift â€” premium feel */
.why-card,
.infra-stat-box,
.infra-floor,
.explore-card,
.pl-card,
.bake-card,
.ind-card,
.machine-card,
.blog-card,
.featured-card,
.stat-block,
.r-card,
.t-card,
.pkg-card,
.pkg-info-card,
.timeline-card,
.contact-info-card {
  transition:
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Shimmer on card hover */
.why-card::after,
.explore-card::after,
.pl-card::after,
.machine-card::after,
.blog-card::after,
.pkg-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(224, 90, 30, 0.6),
    transparent
  );
  opacity: 0;
  transform: scaleX(0);
  transition:
    opacity 0.4s,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-card:hover::after,
.explore-card:hover::after,
.pl-card:hover::after,
.machine-card:hover::after,
.blog-card:hover::after,
.pkg-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Stat number count-up glow on hover */
.about-hero-stat:hover .about-hero-stat-num,
.infra-stat-box:hover .infra-stat-box-num,
.stat-block:hover .stat-number {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Link underline slide */
.footer-col ul li a,
.drawer-link,
.toc-pill,
.filter-pill {
  transition:
    color 0.25s,
    padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s,
    border-color 0.25s,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button press feedback */
.nav-cta:active,
.fcta-btn-primary:active,
.line-cta-btn-primary:active,
.pkg-cta-primary:active,
.enquire-submit:active {
  transform: scale(0.97) translateY(0);
}

/* Image scale on card hover */
.bake-card:hover .bake-card-img,
.ind-line-pill:hover .ind-line-pill-icon img,
.blog-card:hover img {
  transform: scale(1.06);
}

/* Smooth border-radius pulse on active nav item */
.island-item.active .island-icon svg {
  filter: drop-shadow(0 0 4px rgba(224, 90, 30, 0.6));
}

/* Orange accent line slide-in on section hover */
.pl-card-cta-text,
.view-btn,
.blog-card-cta,
.explore-card-cta,
.featured-details {
  transition:
    letter-spacing 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tablet-specific enhancements */
@media (min-width: 769px) and (max-width: 1024px) {
  .why-card:hover,
  .explore-card:hover,
  .pl-card:hover,
  .machine-card:hover,
  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(224, 90, 30, 0.06);
  }
}

/* Desktop-specific enhancements */
@media (min-width: 1025px) {
  .why-card:hover,
  .explore-card:hover,
  .pl-card:hover,
  .machine-card:hover,
  .blog-card:hover {
    transform: translateY(-8px);
    box-shadow:
      0 28px 72px rgba(0, 0, 0, 0.65),
      0 0 0 1px rgba(224, 90, 30, 0.07);
  }
  /* Subtle parallax depth on hero sections */
  .pl-hero-bg,
  .about-hero-orb,
  .blog-hero-orb {
    will-change: transform;
  }
}

/* Mobile â€” no hover transforms (tap only) */
@media (max-width: 768px) {
  .why-card:hover,
  .explore-card:hover,
  .pl-card:hover,
  .machine-card:hover,
  .blog-card:hover,
  .infra-floor:hover,
  .quality-pillar:hover {
    transform: none;
  }
  .why-card:active {
    transform: scale(0.98);
  }
  .pl-card:active,
  .blog-card:active,
  .machine-card:active {
    transform: scale(0.98);
  }
  .island-item:active {
    transform: scale(0.92);
  }
}

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

/* â”€â”€ GHOST / WATERMARK NUMBERS â€” visible on mobile â”€â”€ */
@media (max-width: 768px) {
  .pl-lines-count {
    color: rgba(255, 255, 255, 0.12);
    font-size: 48px;
  }
  .about-hero-bg-num {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    font-size: 20vw;
  }
  .history-intro-ghost {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
    font-size: 18vw;
  }
  .tl-year-ghost {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  }
  .blog-hero-bg-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
    font-size: 18vw;
  }
  .terms-hero-bg-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
    font-size: 18vw;
  }
  .line-num-bg {
    display: none;
  }
  /* History timeline year numbers */
  .tl-year {
    -webkit-text-stroke: 1px rgba(224, 90, 30, 0.35);
    font-size: 44px;
  }
  /* Cert milestone years */
  .cert-milestone-year {
    color: #777777;
    font-size: 16px;
  }
  /* Stat ghost decorative numbers */
  .pl-lines-count {
    color: rgba(255, 255, 255, 0.14);
  }
  /* About hero year watermark */
  @media (max-width: 768px) {
    .history-intro-meta {
      flex-wrap: wrap;
      justify-content: center;
      border: none;
      gap: 10px;
    }
    .history-meta-pill {
      border-right: none;
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 10px;
      padding: 10px 16px;
      flex: 0 1 auto;
    }
    .history-meta-num {
      font-size: 22px;
      color: #ffffff;
    }
    .history-meta-label {
      color: #888888;
    }
  }
}

/* ================= VERTICAL TIMELINE (rebuilt) ================= */
.tl-v-section {
  position: relative;
  background: #000;
  padding: 100px 24px 140px;
}
.tl-v-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12) 5%, rgba(255,255,255,0.12) 95%, transparent);
  transform: translateX(-50%);
}
.tl-v-line-fill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--orange);
  transform: translateX(-50%);
  z-index: 1;
  transition: height 0.4s ease-out;
}
.tl-v-track {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
  position: relative;
}
.tl-v-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: start;
  gap: 0;
  position: relative;
}
.tl-v-body-wrap {
  display: contents;
}
.tl-v-item:nth-child(even) .tl-v-content {
  grid-column: 1;
  grid-row: 2;
  text-align: right;
}
.tl-v-item:nth-child(odd) .tl-v-content {
  grid-column: 3;
  grid-row: 2;
  text-align: left;
}
.tl-v-item:nth-child(even) .tl-v-year {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}
.tl-v-item:nth-child(odd) .tl-v-year {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
}
.tl-v-dot {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  margin: 6px auto 0;
  position: relative;
  z-index: 2;
}
.tl-v-dot.orange {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(224,90,30,0.18);
}
.tl-v-year {
  font-family: "Syne", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 2px;
  margin-top: 4px;
  margin-bottom: 6px;
}
.tl-v-content {
  padding: 0 20px;
}
.tl-v-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 10px;
}
.tl-v-headline {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}
.tl-v-body {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin-bottom: 14px;
}
.tl-v-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-v-item:nth-child(even) .tl-v-tags {
  justify-content: flex-end;
}
.tl-v-tag {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 12px;
  border-radius: 20px;
}
.tl-v-tag.orange {
  color: var(--orange);
  border-color: rgba(224,90,30,0.35);
}
.tl-v-divider {
  grid-column: 1 / -1;
  height: 260px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  position: relative;
  z-index: 2;
}
.tl-v-divider span {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .tl-v-line { left: 31px; }
  .tl-v-line-fill { left: 31px; }
  .tl-v-item {
    position: relative;
    display: block;
    padding-left: 32px;
  }
  .tl-v-dot {
    position: absolute;
    left: 0;
    top: 6px;
    margin: 0;
  }
  .tl-v-body-wrap {
    display: flex;
    flex-direction: column;
  }
  .tl-v-item:nth-child(even) .tl-v-content,
  .tl-v-item:nth-child(odd) .tl-v-content {
    text-align: left;
    order: 2;
  }
  .tl-v-item:nth-child(even) .tl-v-year,
  .tl-v-item:nth-child(odd) .tl-v-year {
    text-align: left;
    margin-bottom: 8px;
    display: block;
    order: 1;
  }
  .tl-v-item:nth-child(even) .tl-v-tags {
    justify-content: flex-start;
  }
  .tl-v-divider {
    height: 180px;
  }
  .tl-v-divider span {
    font-size: 17px;
  }
}