html,
body {
  margin: 0;
  /* remove default 8px margin that causes scroll with full-bleed rows */
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  /* belt-and-suspenders: stop any stray overflow */
}

:root {
    --nav-height-steel-mill: 60px;
    --maxw-steel-mill: 1400px;
    --accent-steel-mill: #ff5a00;
    --text-steel-mill: #fff;
    --muted-steel-mill: #d9d9d9;
}


.hero-steel-mill * {
    box-sizing: border-box;
    font-family: "Poppins", system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

.hero-steel-mill.steel-mill {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: var(--nav-height-steel-mill);
    overflow: hidden;
}

.slider-container-steel-mill {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-steel-mill {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .9s ease-in-out;
}

.active-steel-mill {
    opacity: 1;
    z-index: 1;
}

.overlay-steel-mill {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.inner-steel-mill {
    position: relative;
    height: 100%;
    max-width: var(--maxw-steel-mill);
    margin: 0 auto;
    padding-inline: 24px;
}

.content-steel-mill {
    position: absolute;
    top: 16%;
    left: 24px;
    width: min(920px, 70vw);
    color: var(--text-steel-mill);
    text-align: left;
}

.eyebrow-steel-mill {
    color: var(--muted-steel-mill);
    font-weight: 600;
    margin-bottom: 10px;
}

.title-steel-mill {
    font-weight: 800;
    line-height: 1.06;
    font-size: clamp(36px, 5.2vw, 72px);
    margin: 0 0 16px;
}

.desc-steel-mill {
    color: #d0d0d0;
    font-size: clamp(14px, 1.3vw, 18px);
    margin: 0 0 22px;
}

.btn-steel-mill {
    display: inline-block;
    background: var(--accent-steel-mill);
    color: #fff;
    text-decoration: none;
    padding: 14px 22px;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transition: transform .15s ease, filter .2s ease;
}

.btn-steel-mill:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
}
/* helper so logo images fit in the existing icon box */
.steel-tile__icon img{
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

/* --- Square card fully on the right edge of the slide --- */
.card-steel-mill {
    position: absolute;
    /* anchor to the *viewport* right edge, not the 1400px grid */
    right: clamp(16px, 3.5vw, 60px);
    bottom: 54px;
    width: 300px;
    height: 130px;
    /* perfect square */
    background: #fff;
    color: #111;
    border-radius: 0;
    /* sharp corners */
    padding: 20px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .28);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3;

}

.card-kicker-steel-mill {
    color: var(--accent-steel-mill);
    font-weight: 700;
    font-size: 14px;
}

.card-title-steel-mill {
    font-size: 18px;
    line-height: 1.35;
    margin: 0;
}

.card-link-steel-mill {
    margin-top: auto;
    color: var(--accent-steel-mill);
    font-weight: 700;
    text-decoration: none;
}

/* --- Single arrows, always inside the 1400px area --- */
.arrows-steel-mill {
    position: absolute;
    left: calc((100vw - var(--maxw-steel-mill))/2 + 150px);
    /* inside 1400px grid */
    bottom: 36px;
    display: flex;
    gap: 14px;
    z-index: 5;
}

.prev-steel-mill,
.next-steel-mill {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, .9);
    color: #111;
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    transition: background .2s ease, color .2s ease, transform .15s ease;
}

.prev-steel-mill:hover,
.next-steel-mill:hover {
    background: var(--accent-steel-mill);
    color: #fff;
    transform: translateY(-2px);
}

/* Scroll reveal */
.reveal-up-steel-mill,
.reveal-down-steel-mill,
.reveal-left-steel-mill,
.reveal-right-steel-mill {
    opacity: 0;
    transition: opacity .9s ease, transform .9s ease;
}

.reveal-up-steel-mill {
    transform: translateY(60px);
}

.reveal-down-steel-mill {
    transform: translateY(-60px);
}

.reveal-left-steel-mill {
    transform: translateX(-60px);
}

.reveal-right-steel-mill {
    transform: translateX(60px);
}

.revealed-steel-mill {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive fallback: keep card visible on small screens */
@media (max-width:900px) {
    .card-steel-mill {
        right: 24px;
        bottom: 28px;
        width: 260px;
        height: 260px;
    }
}

/* ---------- MOBILE / TABLET PORTRAIT (≤ 900px) ---------- */
@media (max-width: 900px) {

  /* Hero fills the viewport under the fixed nav, no extra gap */
  .hero-steel-mill.steel-mill {
    height: calc(100vh - var(--nav-height-steel-mill));
    margin-top: var(--nav-height-steel-mill);
  }

  .inner-steel-mill {
    max-width: 100%;
    padding-inline: 12px;
  }

  /* Show more of the lower part of the image (less sky) */
  .slide-steel-mill {
    background-size: cover;
    background-position: center 80%; /* 80% pulls image up – more mill, less sky */
  }

  /* TEXT BLOCK – full width, higher on the image, no overflow */
  .content-steel-mill {
    position: absolute;
    top: 9%;          /* was 12–18%: move text slightly up */
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    text-align: left;
  }

  .eyebrow-steel-mill {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .title-steel-mill {
    font-size: 22px;
    line-height: 1.18;
    margin-bottom: 8px;
  }

  .desc-steel-mill {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  /* CARD – stays fully visible, tight to the bottom */
  .card-steel-mill {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 18px;
    width: auto;
    max-width: none;
    transform: none;
    height: auto;
    padding: 14px;
    border-radius: 4px;
    gap: 6px;
  }

  .card-title-steel-mill {
    font-size: 14px;
    line-height: 1.35;
  }

  /* ARROWS – just above the card, aligned to content edge */
  .arrows-steel-mill {
    left: 12px;
    transform: none;
    bottom: 112px;    /* sits nicely above the white card */
    gap: 10px;
  }

  .prev-steel-mill,
  .next-steel-mill {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

/* Optional: even tighter on very small phones (≤ 480px) */
@media (max-width: 480px) {
  .content-steel-mill {
    top: 7%;
  }

  .title-steel-mill {
    font-size: 20px;
  }

  .desc-steel-mill {
    font-size: 12px;
  }
}
/* ---------- MOBILE / TABLET PORTRAIT (≤ 900px) ---------- */
@media (max-width: 900px) {

  /* Slightly shorter than full screen to avoid stretched feeling */
  .hero-steel-mill.steel-mill {
    height: calc(90vh - var(--nav-height-steel-mill));
    margin-top: var(--nav-height-steel-mill);
  }

  .inner-steel-mill {
    max-width: 100%;
    padding-inline: 12px;
  }

  /* Show *less sky, more building* on mobile */
  .slide-steel-mill {
    background-size: cover;
    background-position: center bottom;  /* key change: crop sky, anchor to bottom */
  }

  /* TEXT BLOCK – sits a bit lower so it overlaps the mill more, not the sky */
  .content-steel-mill {
    position: absolute;
    top: 14%;          /* was 9–12%: move text slightly down */
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    text-align: left;
  }

  .eyebrow-steel-mill {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .title-steel-mill {
    font-size: 22px;
    line-height: 1.18;
    margin-bottom: 8px;
  }

  .desc-steel-mill {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  /* CARD – stays fully visible at the bottom */
  .card-steel-mill {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 18px;
    width: auto;
    max-width: none;
    transform: none;
    height: auto;
    padding: 14px;
    border-radius: 4px;
    gap: 6px;
  }

  .card-title-steel-mill {
    font-size: 14px;
    line-height: 1.35;
  }

  /* ARROWS – just above the card */
  .arrows-steel-mill {
    left: 12px;
    transform: none;
    bottom: 112px;
    gap: 10px;
  }

  .prev-steel-mill,
  .next-steel-mill {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

/* Extra tightening for very small widths (like 412 × 915 and below) */
@media (max-width: 480px) {

  .hero-steel-mill.steel-mill {
    height: calc(86vh - var(--nav-height-steel-mill));
  }

  .slide-steel-mill {
    background-position: center 100%;   /* crop even more sky on very small phones */
  }

  .content-steel-mill {
    top: 15%;        /* keep text clear but still over the mill */
  }

  .title-steel-mill {
    font-size: 20px;
  }

  .desc-steel-mill {
    font-size: 12px;
  }
}

/* ---------- MOBILE / TABLET PORTRAIT (≤ 900px) ---------- */
@media (max-width: 900px) {

  .hero-steel-mill.steel-mill {
    height: calc(90vh - var(--nav-height-steel-mill));
    margin-top: var(--nav-height-steel-mill);
  }

  .inner-steel-mill {
    max-width: 100%;
    padding-inline: 12px;
  }

  /* Crop sky, anchor to bottom – removes “empty” top area */
  .slide-steel-mill {
    background-size: cover;
    background-position: center bottom;
  }

  .content-steel-mill {
    position: absolute;
    top: 14%;
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    text-align: left;
  }

  .eyebrow-steel-mill {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .title-steel-mill {
    font-size: 22px;
    line-height: 1.18;
    margin-bottom: 8px;
  }

  .desc-steel-mill {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .card-steel-mill {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 18px;
    width: auto;
    max-width: none;
    transform: none;
    height: auto;
    padding: 14px;
    border-radius: 4px;
    gap: 6px;
  }

  .card-title-steel-mill {
    font-size: 14px;
    line-height: 1.35;
  }

  .arrows-steel-mill {
    left: 12px;
    transform: none;
    bottom: 112px;
    gap: 10px;
  }

  .prev-steel-mill,
  .next-steel-mill {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

/* Extra tightening for very small phones (e.g. 412×915 and below) */
@media (max-width: 480px) {

  .hero-steel-mill.steel-mill {
    height: calc(86vh - var(--nav-height-steel-mill));
  }

  .slide-steel-mill {
    background-position: center 100%;   /* crop a bit more sky */
  }

  .content-steel-mill {
    top: 15%;
  }

  .title-steel-mill {
    font-size: 20px;
  }

  .desc-steel-mill {
    font-size: 12px;
  }
}

/* ====== Vars ====== */
:root {
    --core-ink: #0f141b;
    --core-muted: #667289;
    --core-bg: #ffffff;
    --core-chip: #ff6a2a;
    --core-chip-2: #ff8a52;
    --core-glass: rgba(16, 20, 28, .55);
    --core-ring: rgba(255, 255, 255, .18);
    --core-shadow: 0 22px 60px rgba(2, 8, 23, .25);
}

/* ====== Section ====== */
.core-wrap-core-steel-mill {
    background: var(--core-bg);
    color: var(--core-ink);
    padding: clamp(20px, 1vw, 26px) 0;
}

.core-grid-core-steel-mill {
    width: min(1200px, 92%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(18px, 3vw, 28px);
    align-items: start;
}

/* ====== Media with badge ====== */
.core-media-core-steel-mill {
    position: relative;
    /* border-radius: 16px; */
    overflow: hidden;
    box-shadow: var(--core-shadow);
    margin: 0;
}

.core-media-core-steel-mill img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.core-badge-core-steel-mill{
  position:absolute;
  right:10px;
  bottom:10px;

  /* Stack vertically */
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;

  /* size & spacing */
  width:120px;      /* or 100px if you prefer */
  min-height:180px; /* keeps the tall look */
  padding:16px 18px;
  row-gap:6px;      /* space between number & label */

  /* glass style */
  background:var(--core-glass);
  backdrop-filter:blur(6px) saturate(120%);
  border:1px solid var(--core-ring);
  color:#fff;
  /* optional rounded corners */
  /* border-radius:14px; */
}

.core-years-core-steel-mill{
  font-size:clamp(2.2rem,5.8vw,3.2rem);
  font-weight:900;
  line-height:.9;
}

.core-note-core-steel-mill{
  margin-top:6px;               /* small gap under the number */
  font-weight:800;
  letter-spacing:.2px;
  opacity:.95;
  line-height:1.15;             /* better multi-line label */
}

/* Small devices—scale badge a bit */
@media (max-width: 520px){
  .core-badge-core-steel-mill{
    width:110px;
    min-height:160px;
    padding:12px 14px;
  }
  .core-lead-core-steel-mill2 {
    padding-top: -20px;
    margin-top: -20px;
  }
  .core-years-core-steel-mill{
    font-size:clamp(1.8rem,8vw,2.4rem);
  }
}

/* ====== Copy ====== */
.core-copy-core-steel-mill {
    padding-top: 6px;
}

.core-kicker-core-steel-mill {
    margin: 0 0 8px;
    font-weight: 900;
    letter-spacing: .35px;
    color: #ff946b;
}

.core-title-core-steel-mill {
    margin: .1rem 0 .7rem;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    line-height: 1.15;
    font-weight: 900;
}

.core-lead-core-steel-mill {
    margin: 0 0 1rem;
    color: var(--core-muted);
    line-height: 1.65;
}

@media (max-width: 480px){
.core-lead-core-steel-mill2{
    padding-top: -20px;
    margin-top: -20px;
}}
.core-lead-core-steel-mill2 {
    max-width: 1200px;
    margin: 20px auto;      
    padding: 20px;

    color: var(--core-muted);
    line-height: 1.65;
    text-align: left;     /* centers the text */

    /* Remove these unless you explicitly use display:flex
    justify-content: center;
    align-items: center;
    */
}

/* CTA */
.core-cta-core-steel-mill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    background: var(--core-chip);
    color: #181818;
    font-weight: 900;
    border: 2px solid transparent;
    box-shadow: 0 14px 30px rgba(255, 106, 42, .25);
    transition: transform .25s ease, filter .25s ease, border-color .25s ease;
}

.core-cta-core-steel-mill:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

/* Feature bar */
.core-bar-core-steel-mill {
    margin-top: clamp(14px, 2.5vw, 20px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: clamp(16px, 3vw, 26px);
    padding: clamp(14px, 2.5vw, 18px);
    border-radius: 14px;
    background: #f6f9fc;
    border: 1px solid rgba(2, 8, 23, .06);
}

.core-item-core-steel-mill h3 {
    margin: .2rem 0 .35rem;
    font-weight: 900;
    font-size: clamp(1.02rem, 2.2vw, 1.15rem);
}

.core-item-core-steel-mill p {
    margin: 0;
    color: var(--core-muted);
}

.core-ico-core-steel-mill {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--core-chip), var(--core-chip-2));
    color: #23140c;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(255, 106, 42, .28);
}

.core-divider-core-steel-mill {
    width: 1px;
    height: 100%;
    background: rgba(2, 8, 23, .1);
}

/* ====== Responsive ====== */
@media (max-width: 960px) {
    .core-grid-core-steel-mill {
        grid-template-columns: 1fr;
    }

    .core-media-core-steel-mill {
        order: 1;
    }

    .core-copy-core-steel-mill {
        order: 2;
    }

    .core-bar-core-steel-mill {
        grid-template-columns: 1fr;
    }

    .core-divider-core-steel-mill {
        display: none;
    }
}

/* ====== Reveal on scroll (replays up/down) ====== */
.reveal-left-core-steel-mill,
.reveal-right-core-steel-mill,
.reveal-up-core-steel-mill,
.reveal-down-core-steel-mill {
    opacity: 0;
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    will-change: transform, opacity;
}

.reveal-left-core-steel-mill {
    transform: translateX(-18px);
}

.reveal-right-core-steel-mill {
    transform: translateX(18px);
}

.reveal-up-core-steel-mill {
    transform: translateY(18px);
}

.reveal-down-core-steel-mill {
    transform: translateY(-18px);
}

.is-visible-core-steel-mill {
    opacity: 1;
    transform: none;
}
/* Desktop / large tablet – image + text same height, no overlap */
@media (min-width: 961px) {

  /* Let the row height be defined by content, but make columns equal */
  .core-grid-core-steel-mill {
      align-items: stretch;   /* both columns stretch to row height */
  }

  .core-media-core-steel-mill,
  .core-copy-core-steel-mill {
      height: 100%;
      display: flex;
      flex-direction: column;
  }

  /* Image fills the column height and crops nicely */
  .core-media-core-steel-mill img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      flex: 1 1 auto;
  }

  /* Text column uses full height but does NOT scroll or overflow */
  .core-copy-core-steel-mill {
      justify-content: flex-start;
  }

  /* Just a small tidy: remove extra space at bottom of last paragraph */
  .core-copy-core-steel-mill > *:last-child {
      margin-bottom: 0;
  }
}

/* process */
/* ================================
   Pre-cleaner Rice Milling Process
   ================================ */

.section-pre-cleaner-process {
  background: #ffffff;
  padding: clamp(32px, 1vw, 26px) 0;
    /* width: min(1480px, 92%); */
}

.inner-pre-cleaner-process {
  width: min(1480px, 92%);
  margin-inline: auto;
  text-align: center;
}

.title-pre-cleaner-process {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: var(--core-ink);
}

.subtitle-pre-cleaner-process {
  margin: 0;
  color: var(--core-muted);
  font-size: 0.98rem;
}

/* ---------- Grid layout ---------- */

.flow-pre-cleaner-process {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.flow-grid-pre-cleaner-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  grid-auto-rows: auto;
  column-gap: 48px;
  row-gap: 60px;
  align-items: center;
  justify-items: center;
}

/* ---------- Step blocks ---------- */

.step-pre-cleaner-process {
  position: relative;
  min-width: 170px;
  padding: 14px 26px;
  border-radius: 10px;
  background: var(--core-ink);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 20, 27, 0.24);
  white-space: nowrap;
}

/* ---------- Connectors for DESKTOP (≥ 768px) ---------- */

/* Horizontal: left → right */
.step-arrow-right-pre-cleaner-process::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -48px;          /* matches column-gap */
  width: 48px;
  height: 2px;
  background: var(--accent-steel-mill);
  transform: translateY(-50%);
}

.step-arrow-right-pre-cleaner-process::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -48px;
  transform: translate(0, -50%);
  border-style: solid;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent var(--accent-steel-mill);
}

/* Horizontal: right → left (bottom row) */
.step-arrow-left-pre-cleaner-process::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -48px;
  width: 48px;
  height: 2px;
  background: var(--accent-steel-mill);
  transform: translateY(-50%);
}

.step-arrow-left-pre-cleaner-process::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -48px;
  transform: translate(-0, -50%);
  border-style: solid;
  border-width: 6px 8px 6px 0;
  border-color: transparent var(--accent-steel-mill) transparent transparent;
}

/* Vertical: Husking ↓ Separating */
.step-arrow-down-pre-cleaner-process::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -50px;          /* matches row-gap */
  width: 2px;
  height: 50px;
  background: var(--accent-steel-mill);
  transform: translateX(-50%);
}
.step-arrow-down-pre-cleaner-process::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -50px;
transform: translate(-50%, 100%);
  border-style: solid;  
  border-width: 8px 8px 0 8px;
  border-color:var(--accent-steel-mill) transparent transparent transparent;
}

.step-from-top-pre-cleaner-process::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translate(-50%, 0);
  border-style: solid;
  border-width: 8px 6px 0 6px;
  border-color: var(--accent-steel-mill) transparent transparent transparent;
}

/* ---------- Reveal animation helper (optional) ---------- */

.reveal-up-pre-cleaner-process {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

/* If you want to hook this into your existing IntersectionObserver,
   just toggle this class from JS when visible: */
.reveal-up-pre-cleaner-process.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .flow-grid-pre-cleaner-process {
    column-gap: 32px;
    row-gap: 44px;
  }

  .step-pre-cleaner-process {
    min-width: 150px;
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .step-arrow-right-pre-cleaner-process::after,
  .step-arrow-right-pre-cleaner-process::before,
  .step-arrow-left-pre-cleaner-process::after,
  .step-arrow-left-pre-cleaner-process::before {
    right: -32px;
    left: -32px;
    width: 32px;
  }

  .step-arrow-down-pre-cleaner-process::after,
  .step-from-top-pre-cleaner-process::before {
    bottom: -44px;
    top: -44px;
    height: 44px;
  }
}

/* On small screens stack vertically with simple down arrows */
@media (max-width: 768px) {

  .flow-pre-cleaner-process {
    justify-content: stretch;
  }

  .flow-grid-pre-cleaner-process {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .step-pre-cleaner-process {
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
  }

  /* remove desktop connectors */
  .step-arrow-right-pre-cleaner-process::after,
  .step-arrow-right-pre-cleaner-process::before,
  .step-arrow-left-pre-cleaner-process::after,
  .step-arrow-left-pre-cleaner-process::before,
  .step-arrow-down-pre-cleaner-process::after,
  .step-from-top-pre-cleaner-process::before {
    content: none;
  }

  /* add vertical connector between each stacked block */
  .step-pre-cleaner-process:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 2px;
    height: 18px;
    background: var(--accent-steel-mill);
    transform: translateX(-50%);
  }

  .step-pre-cleaner-process:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translate(-50%, 100%);
    border-style: solid;
    border-width: 8px 6px 0 6px;
    border-color: var(--accent-steel-mill) transparent transparent transparent;
  }
}
/* ================================
   Pre-cleaner Rice Milling Process
   ================================ */

.section-pre-cleaner-process {
  background: #ffffff;
  padding: clamp(32px, 1vw, 26px) 0;
}

.inner-pre-cleaner-process {
  width: min(1480px, 92%);
  margin-inline: auto;
  text-align: center;
}

.title-pre-cleaner-process {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: var(--core-ink);
}

.subtitle-pre-cleaner-process {
  margin: 0;
  color: var(--core-muted);
  font-size: 0.98rem;
}

/* ---------- Grid layout (DESKTOP) ---------- */

.flow-pre-cleaner-process {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.flow-grid-pre-cleaner-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  grid-auto-rows: auto;
  column-gap: 48px;
  row-gap: 60px;
  align-items: center;
  justify-items: center;
}

/* ---------- Step blocks ---------- */

.step-pre-cleaner-process {
  position: relative;
  min-width: 170px;
  padding: 14px 26px;
  border-radius: 10px;
  background: var(--core-ink);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 20, 27, 0.24);
  white-space: nowrap;
}

/* ---------- Connectors for DESKTOP (≥ 768px) ---------- */

/* Horizontal: left → right */
.step-arrow-right-pre-cleaner-process::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -48px;          /* matches column-gap */
  width: 48px;
  height: 2px;
  background: var(--accent-steel-mill);
  transform: translateY(-50%);
}

.step-arrow-right-pre-cleaner-process::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -48px;
  transform: translate(0, -50%);
  border-style: solid;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent var(--accent-steel-mill);
}

/* Horizontal: right → left (bottom row) */
.step-arrow-left-pre-cleaner-process::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -48px;
  width: 48px;
  height: 2px;
  background: var(--accent-steel-mill);
  transform: translateY(-50%);
}

.step-arrow-left-pre-cleaner-process::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -48px;
  transform: translate(-0, -50%);
  border-style: solid;
  border-width: 6px 8px 6px 0;
  border-color: transparent var(--accent-steel-mill) transparent transparent;
}

/* Vertical: Husking ↓ Separating */
.step-arrow-down-pre-cleaner-process::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -50px;          /* matches row-gap */
  width: 2px;
  height: 50px;
  background: var(--accent-steel-mill);
  transform: translateX(-50%);
}

.step-arrow-down-pre-cleaner-process::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -50px;
  transform: translate(-50%, 100%);
  border-style: solid;
  border-width: 8px 8px 0 8px;
  border-color: var(--accent-steel-mill) transparent transparent transparent;
}

/* Optional: arrow coming from top (if ever used) */
.step-from-top-pre-cleaner-process::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translate(-50%, 0);
  border-style: solid;
  border-width: 8px 6px 0 6px;
  border-color: var(--accent-steel-mill) transparent transparent transparent;
}

/* ---------- Tablet adjustments ---------- */

@media (max-width: 1024px) {
  .flow-grid-pre-cleaner-process {
    column-gap: 32px;
    row-gap: 44px;
  }

  .step-pre-cleaner-process {
    min-width: 150px;
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .step-arrow-right-pre-cleaner-process::after,
  .step-arrow-right-pre-cleaner-process::before,
  .step-arrow-left-pre-cleaner-process::after,
  .step-arrow-left-pre-cleaner-process::before {
    right: -32px;
    left: -32px;
    width: 32px;
  }

  .step-arrow-down-pre-cleaner-process::after {
    bottom: -44px;
    height: 44px;
  }

  .step-from-top-pre-cleaner-process::before {
    top: -44px;
  }
}

/* ---------- MOBILE (≤ 768px) ----------
   Stack vertically, centered, with single down arrow between each step
   ------------------------------------- */

@media (max-width: 768px) {

  .flow-pre-cleaner-process {
    margin-top: 24px;
    justify-content: center;
  }

  .flow-grid-pre-cleaner-process {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .step-pre-cleaner-process {
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
  }

  /* Remove ALL desktop connectors */
  .step-arrow-right-pre-cleaner-process::after,
  .step-arrow-right-pre-cleaner-process::before,
  .step-arrow-left-pre-cleaner-process::after,
  .step-arrow-left-pre-cleaner-process::before,
  .step-arrow-down-pre-cleaner-process::after,
  .step-arrow-down-pre-cleaner-process::before,
  .step-from-top-pre-cleaner-process::before {
    content: none !important;
  }

  /* Vertical connector between each stacked block */
  .step-pre-cleaner-process:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 2px;
    height: 18px;
    background: var(--accent-steel-mill);
    transform: translateX(-50%);
  }

  .step-pre-cleaner-process:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translate(-50%, 100%);
    border-style: solid;
    border-width: 8px 6px 0 6px;
    border-color: var(--accent-steel-mill) transparent transparent transparent;
  }
  @media (max-width: 768px) {

  /* existing mobile styles … */

  /* Remove connector under the 5th step ("Storing") only */
  .flow-grid-pre-cleaner-process .step-pre-cleaner-process:nth-child(5)::after,
  .flow-grid-pre-cleaner-process .step-pre-cleaner-process:nth-child(5)::before {
    content: none !important;
  }
}

}
.step-pre-cleaner-process {
  position: relative;
  min-width: 170px;
  padding: 14px 26px;
  border-radius: 10px;
  background: var(--core-ink);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 20, 27, 0.24);
  white-space: nowrap;

  /* button reset */
  border: none;
  cursor: pointer;
  outline: none;
}

/* hover / focus */
.step-pre-cleaner-process:hover,
.step-pre-cleaner-process:focus-visible {
  background: #151b26;
  box-shadow: 0 14px 30px rgba(15, 20, 27, 0.32);
  transform: translateY(-1px);
}

.step-pre-cleaner-process:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 20, 27, 0.26);
}


/* ================================
   Detailed Process Cards
   ================================ */

.section-process-details {
  background: #ffffff;
  padding: clamp(32px, 1vw, 56px) 0 60px;
}

.inner-process-details {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.process-details-title {
  text-align: center;
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--core-ink);
}

.process-details-subtitle {
  text-align: center;
  margin: 0 0 1.8rem;
  color: var(--core-muted);
  font-size: 0.98rem;
}

/* ---- Each process block ---- */

.process-detail {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  margin-bottom: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.process-detail-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.process-step-chip {
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-steel-mill);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 20px rgba(255, 90, 0, 0.35);
}

.process-detail-header h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
}

.process-detail-header p {
  margin: 0;
  color: var(--core-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ---- Type cards grid ---- */

.process-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-type-card {
  background: #0f141b;
  color: #f9fafb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
}

.process-type-card img {
  max-width: auto;
  height: 250px;          /* For 1200x800 images */
  object-fit: cover;
}

.process-type-card figcaption {
  padding: 10px 12px 12px;
}

.process-type-card h4 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  font-weight: 700;
}

.process-type-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #e5e7eb;
  line-height: 1.5;
}

/* ---- Reveal animation ---- */

.reveal-process {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

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

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .process-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .section-process-details {
    padding-top: 28px;
  }

  .process-detail {
    padding: 18px 14px 18px;
  }

  .process-detail-header {
    align-items: flex-start;
  }

  .process-type-grid {
    grid-template-columns: 1fr;
  }

  .process-type-card img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .process-detail {
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .process-type-card img {
    height: 150px;
  }
}


/* work process */

/* ================== Work Process (Steel Mill) ================== */
:root{
  --proc-bg:#ffffff;
  --proc-card:#ffffff;
  --proc-ink:#0f1720;
  --proc-muted:#64748b;
  --proc-accent:#f97316; /* soft orange accent */
  --proc-ring:rgba(15,23,32,.10);
  --proc-shadow:0 10px 30px rgba(2,8,23,.08);
}

.wrap-process-steel-mill{
  background:var(--proc-bg);
  padding: clamp(36px, 6vw, 80px) 16px;
}

.head-process-steel-mill{
  width:min(1120px, 100%);
  margin: 0 auto clamp(20px, 4vw, 36px);
}

.title-process-steel-mill{
  font-size: clamp(2.2rem, 8vw, 5.2rem);
  line-height:.95;
  font-weight: 900;
  letter-spacing: .5px;
  color: var(--proc-ink);
  margin: 0;
}

.grid-process-steel-mill{
  width:min(1120px, 100%);
  margin-inline:auto;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 22px);
}

.card-process-steel-mill{
  position:relative;
  background:var(--proc-card);
  border:1px solid var(--proc-ring);
  border-radius:14px;
  box-shadow: var(--proc-shadow);
  padding: clamp(16px, 2.6vw, 22px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card-process-steel-mill:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(2,8,23,.12);
  border-color: rgba(249,115,22,.28);
}

.no-process-steel-mill{
  display:block;
  font-weight:900;
  font-size: clamp(1.8rem, 4.8vw, 2.8rem);
  color: var(--proc-ink);
  margin-bottom:.25rem;
}

.kicker-process-steel-mill{
  color: var(--proc-accent);
  font-weight:800;
  font-size:.9rem;
  margin: 0 0 .45rem;
}

.h3-process-steel-mill{
  margin:.1rem 0 .4rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight:900;
  color:var(--proc-ink);
}

.p-process-steel-mill{
  margin:0;
  color:var(--proc-muted);
  line-height:1.6;
  font-size: .96rem;
}

/* ---- Responsive ---- */
@media (max-width: 980px){
  .grid-process-steel-mill{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px){
  .grid-process-steel-mill{
    grid-template-columns: 1fr;
  }
}

/* ================== Reveal on scroll (bi-directional) ================== */
.reveal-process-steel-mill{ opacity:0; transform: translateY(16px); }
.reveal-process-steel-mill.from-up{ transform: translateY(22px); }
.reveal-process-steel-mill.from-down{ transform: translateY(-22px); }
.reveal-process-steel-mill.from-left{ transform: translateX(-28px); }
.reveal-process-steel-mill.from-right{ transform: translateX(28px); }

.reveal-process-steel-mill.is-visible{
  opacity:1;
  transform:none;
  transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .6s ease;
}