* {
  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);
  --border: rgba(255, 255, 255, 0.07);
}

html { scroll-behavior: smooth; }

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

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #050505;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 60% -10%, rgba(224,90,30,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(224,90,30,0.05) 0%, transparent 45%);
  animation: heroBreath 7s ease-in-out infinite alternate;
}
@keyframes heroBreath {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.04); }
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,90,30,0.4), transparent);
  top: 0;
  z-index: 1;
  animation: scanLine 6s linear infinite;
}
@keyframes scanLine {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(100vh); opacity: 0; }
}
.page-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-spring) 0.15s forwards;
}
.page-eyebrow::before {
  content: "";
  display: inline-block;
  height: 1px;
  background: var(--orange);
  width: 0;
  animation: lineExpand 0.7s var(--ease-spring) 0.6s forwards;
}
@keyframes lineExpand { to { width: 36px; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.95;
  background: linear-gradient(160deg, #fff 45%, rgba(255,255,255,0.3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(32px) skewY(1.5deg);
  animation: titleIn 1s var(--ease-spring) 0.25s forwards;
}
@keyframes titleIn {
  to { opacity: 1; transform: translateY(0) skewY(0deg); }
}
.page-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  max-width: 420px;
  line-height: 1.75;
  margin-top: 18px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-spring) 0.55s forwards;
}

/* ===== GRID SECTION ===== */
.grid-section {
  background: #060606;
  padding: 72px 80px 120px;
  position: relative;
}
.grid-section::before {
  content: "";
  position: absolute;
  top: 0; left: 80px; right: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.bake-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ===== BAKE CARD ===== */
.bake-card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.35s, transform 0.4s var(--ease-spring), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
  will-change: transform;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  aspect-ratio: 3/4;
  min-height: 280px;
}
.bake-card.visible {
  animation: cardIn 0.65s var(--ease-spring) forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.bake-card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-spring);
  z-index: 0;
}
.bake-card:hover .bake-card-img { transform: scale(1.08); }
.bake-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
  transition: background 0.35s;
  pointer-events: none;
}
.bake-card:hover::before {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.15) 100%);
}
.bake-card::after {
  content: "";
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,90,30,0.55), transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.4s, transform 0.5s var(--ease-spring);
  z-index: 2;
}
.bake-card:hover {
  border-color: rgba(224,90,30,0.45);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(224,90,30,0.06);
}
.bake-card:hover::after { opacity: 1; transform: scaleX(1); }
.bake-card:active { transform: translateY(-2px); }
.bake-card-text {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 2;
  transition: bottom 0.3s var(--ease-spring);
}
.bake-card:hover .bake-card-text { bottom: 26px; }
.bake-card-name {
  font-family: "Syne", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.bake-card-desc {
  padding-right: 40px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bake-card-hint {
  position: absolute;
  top: 20px; right: 18px;
  font-size: 14px;
  color: var(--orange);
  z-index: 2;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.35s var(--ease-spring);
}
.bake-card:hover .bake-card-hint {
  opacity: 1;
  transform: translateX(0);
  background: rgba(251,250,250,0.455);
  padding: 4px 8px;
  border-radius: 10px;
}

/* ===== PAGE TRANSITION ===== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 0.55s var(--ease-in-out);
  pointer-events: none;
}
.page-transition.done { transform: scaleY(0); }

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

/* ═══════════════════════════════
   TABLET 769px–1024px
═══════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-section { padding: 60px 40px 80px; }
  .grid-section::before { left: 40px; right: 40px; }
  .bake-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .page-title { font-size: clamp(40px, 6vw, 64px); letter-spacing: -2px; }
}

/* ═══════════════════════════════
   SMALL LAPTOP 1025px–1280px
═══════════════════════════════ */
@media (min-width: 1025px) and (max-width: 1280px) {
  .grid-section { padding: 60px 60px 100px; }
  .grid-section::before { left: 60px; right: 60px; }
  .bake-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

/* ═══════════════════════════════
   MOBILE max 768px
═══════════════════════════════ */
@media (max-width: 768px) {
  /* hero */
  .page-hero { min-height: auto; }
  .page-title {
    font-size: clamp(36px, 10vw, 52px);
    letter-spacing: -2px;
    line-height: 1;
  }
  .page-sub { font-size: 12px; max-width: 100%; }
  .page-eyebrow { font-size: 10px; letter-spacing: 3px; }

  /* grid */
  .grid-section { padding: 48px 20px 100px; }
  .grid-section::before { left: 20px; right: 20px; }
  /* 2 columns on mobile — cards are readable, not too cramped */
  .bake-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bake-card { min-height: 220px; aspect-ratio: 3/4; }
  .bake-card-text { bottom: 14px; left: 14px; right: 14px; }
  .bake-card:hover .bake-card-text { bottom: 20px; }
  .bake-card-name { font-size: 14px; }
  .bake-card-desc { font-size: 10px; padding-right: 0; }
  /* hide hint on mobile — tap replaces hover */
  .bake-card-hint { display: none; }
  /* add bottom padding so last row clears the island nav */
  .grid-section { padding-bottom: 120px; }
}

/* ═══════════════════════════════
   SMALL MOBILE max 480px
═══════════════════════════════ */
@media (max-width: 480px) {
  .bake-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bake-card { min-height: 180px; }
  .bake-card-name { font-size: 13px; }
  .bake-card-desc { display: none; }
}


/* ================================================================
   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.40s; }
.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;
  }
}
