/* =====================================================================
   GLOBAL MERIDIEN TRADING - products.css
   Immersive B2B trading-portfolio experience for the Products page.
   Loaded after style.css + responsive.css. Reuses all shared tokens,
   the navbar / footer / buttons / .hero / .final-cta / [data-reveal]
   motion layer. Page-specific interactions live in js/products.js.
   ===================================================================== */

/* ---------------------------------------------------------------------
   0. PAGE SCROLL-PROGRESS BAR
   --------------------------------------------------------------------- */
.page-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 2px;
    width: 0;
    background: var(--color-gold);
    z-index: 1300;
    transition: width 0.12s linear;
    pointer-events: none;
}

/* ---------------------------------------------------------------------
   1. SECTION 01 - PRODUCTS HERO  (structure reuses .hero)
   --------------------------------------------------------------------- */
.products-hero .ph-accent {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: soft-light;
    opacity: 0.35;
    pointer-events: none;
}

.ph-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 2.5rem;
    padding: 0.6rem 1.05rem;
    border: 1px solid var(--gold-line);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--color-gold);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 1.35s forwards;
}
.ph-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 0 0 rgba(198, 164, 92, 0.55);
    animation: phPulse 2.6s var(--ease-out) infinite;
}
@keyframes phPulse {
    0% { box-shadow: 0 0 0 0 rgba(198, 164, 92, 0.5); }
    70%, 100% { box-shadow: 0 0 0 12px rgba(198, 164, 92, 0); }
}

.ph-line {
    position: absolute;
    right: var(--gutter);
    bottom: 0;
    width: 1px;
    height: 0;
    background: linear-gradient(180deg, transparent, var(--color-gold));
    animation: phLine 1.1s var(--ease-out) 1.5s forwards;
    z-index: 3;
}
@keyframes phLine { to { height: clamp(70px, 16vh, 160px); } }

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.95s forwards;
}

/* ---------------------------------------------------------------------
   2. SECTION 02 - PRODUCT UNIVERSE  (editorial category navigation)
   --------------------------------------------------------------------- */
.universe {
    position: relative;
    background: var(--color-forest);
    color: var(--color-ivory);
    overflow: hidden;
}
.universe .pu-media {
    position: absolute;
    inset: -4%;
    z-index: 0;
    will-change: transform;
    transition: transform 0.6s var(--ease-out);
}
.universe .pu-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.9s var(--ease-out), transform 1.4s var(--ease-out);
}
.universe .pu-media img.is-active { opacity: 0.32; transform: scale(1); }
.universe .pu-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(11, 44, 82, 0.55), rgba(11, 44, 82, 0.9) 75%),
        linear-gradient(180deg, rgba(11, 44, 82, 0.85), rgba(11, 44, 82, 0.7));
}
.universe .container { position: relative; z-index: 2; }

.pu-head {
    max-width: 60rem;
    margin: 0 auto clamp(3rem, 7vw, 5rem);
    text-align: center;
}
.pu-head .section-heading { color: var(--color-ivory); }
.pu-sub {
    margin-top: 1.75rem;
    font-size: var(--fs-lead);
    line-height: 1.7;
    color: var(--ivory-70);
    max-width: 44ch;
    margin-inline: auto;
}

.pu-list {
    border-top: 1px solid var(--gold-line-soft);
    max-width: 62rem;
    margin-inline: auto;
}
.pu-item {
    position: relative;
    display: flex;
    align-items: baseline;
    min-width: 0;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1.1rem, 2.6vw, 1.9rem) 0.25rem;
    border-bottom: 1px solid var(--gold-line-soft);
    color: var(--ivory-55);
    transition: color 0.45s var(--ease-out), padding-left 0.45s var(--ease-out),
                opacity 0.45s var(--ease-out);
}
.pu-num {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--color-gold);
    opacity: 0.6;
    transition: opacity 0.45s var(--ease-out);
    flex-shrink: 0;
}
.pu-name {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5.4vw, 3.35rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    line-height: 1.05;
    min-width: 0;
    overflow-wrap: anywhere;
}
.pu-arrow {
    margin-left: auto;
    align-self: center;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    color: var(--color-gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    flex-shrink: 0;
}
.pu-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.5s var(--ease-out);
}
/* mute siblings while one row is engaged */
.pu-list.has-active .pu-item { opacity: 0.4; }
.pu-list .pu-item.is-active,
.pu-item:hover,
.pu-item:focus-visible {
    color: var(--color-ivory);
    opacity: 1;
    padding-left: 0.85rem;
}
.pu-item.is-active .pu-num,
.pu-item:hover .pu-num { opacity: 1; }
.pu-item.is-active .pu-arrow,
.pu-item:hover .pu-arrow,
.pu-item:focus-visible .pu-arrow { opacity: 1; transform: translateX(0); }
.pu-item.is-active::after,
.pu-item:hover::after,
.pu-item:focus-visible::after { width: 100%; }

/* ---------------------------------------------------------------------
   3. SECTION 03 - HUMAN FOOD INTRO
   --------------------------------------------------------------------- */
.human-intro { background: var(--color-ivory); color: var(--color-forest); }
.hi-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.hi-copy .section-heading {
    color: var(--color-forest);
    font-size: clamp(2.4rem, 5.6vw, 4rem);
}
.hi-label {
    display: block;
    margin-bottom: 1.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
}
.hi-text {
    margin-top: 1.75rem;
    font-size: var(--fs-lead);
    line-height: 1.85;
    color: rgba(11, 44, 82, 0.82);
    max-width: 46ch;
}
.hi-media {
    position: relative;
    aspect-ratio: 1 / 1;
}
.hi-media img {
    position: absolute;
    object-fit: cover;
    border: 1px solid var(--gold-line-soft);
    background: var(--color-forest);
}
.hi-img-1 {
    width: 74%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 1;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.2s var(--ease-out) 0.1s;
}
.hi-img-2 {
    width: 50%;
    height: 55%;
    right: 0;
    bottom: 0;
    z-index: 2;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s var(--ease-out) 0.35s;
}
.human-intro.in-view .hi-img-1,
.human-intro.in-view .hi-img-2 { clip-path: inset(0 0 0 0); }

/* ---------------------------------------------------------------------
   4. PRODUCT DIVISION BLOCKS  (fresh fruits / vegetables / oils / meat)
   --------------------------------------------------------------------- */
.pdiv { position: relative; overflow: hidden; }
.pdiv--dark   { background: var(--color-charcoal); color: var(--color-ivory); }
.pdiv--forest { background: var(--color-forest); color: var(--color-ivory); }
.pdiv--ivory  { background: var(--color-ivory); color: var(--color-forest); }

.pdiv-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: center;
}
.pdiv--reverse .pdiv-grid { grid-template-columns: 0.98fr 1.02fr; }
.pdiv--reverse .pdiv-media-wrap { order: 2; }

.pdiv-media-wrap { position: relative; }
.pdiv-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--gold-line-soft);
    background: var(--color-forest);
}
.pdiv-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.2s var(--ease-out), transform 1.8s var(--ease-out),
                opacity 0.5s var(--ease-out);
    will-change: transform;
}
.pdiv.in-view .pdiv-media img { clip-path: inset(0 0 0 0); transform: scale(1); }
.pdiv-media img.is-swapping { opacity: 0; transform: scale(1.05); }

.pdiv-media::before,
.pdiv-media::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--color-gold);
    opacity: 0;
    z-index: 2;
    transition: opacity 0.6s ease 0.35s, width 0.6s var(--ease-out) 0.35s,
                height 0.6s var(--ease-out) 0.35s;
}
.pdiv-media::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.pdiv-media::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.pdiv.in-view .pdiv-media::before,
.pdiv.in-view .pdiv-media::after { opacity: 1; width: 36px; height: 36px; }

.pdiv-kicker {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-gold);
}
.pdiv-copy .section-heading { font-size: clamp(2.3rem, 5.6vw, 3.9rem); }
.pdiv--dark .pdiv-copy .section-heading,
.pdiv--forest .pdiv-copy .section-heading { color: var(--color-ivory); }
.pdiv--ivory .pdiv-copy .section-heading { color: var(--color-forest); }
.pdiv-text {
    margin-top: 1.6rem;
    font-size: var(--fs-lead);
    line-height: 1.8;
    max-width: 44ch;
}
.pdiv--dark .pdiv-text,
.pdiv--forest .pdiv-text { color: var(--ivory-70); }
.pdiv--ivory .pdiv-text { color: rgba(11, 44, 82, 0.8); }

.pdiv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2.15rem;
}
.ptag {
    padding: 0.62rem 1.05rem;
    border: 1px solid var(--gold-line);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: inherit;
    background: transparent;
    transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out),
                border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.ptag:hover,
.ptag:focus-visible,
.ptag.is-active {
    background: var(--color-gold);
    color: var(--color-forest);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.pdiv-note {
    display: inline-block;
    margin-top: 2.25rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--gold-line);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* oils: flowing gold frame + subtle liquid sheen */
.oil-frame {
    position: absolute;
    inset: clamp(0.9rem, 3.5vw, 2.75rem);
    z-index: 3;
    pointer-events: none;
    width: auto;
    height: auto;
}
.oil-frame rect {
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 1;
    opacity: 0.45;
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    transition: stroke-dashoffset 3.4s var(--ease-out);
}
.pdiv.in-view .oil-frame rect { stroke-dashoffset: 0; }
.oil-sheen {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(60% 40% at 25% 30%, rgba(198, 164, 92, 0.12), transparent 70%),
        radial-gradient(50% 45% at 80% 75%, rgba(47, 125, 194, 0.14), transparent 70%);
    background-size: 180% 180%, 200% 200%;
    animation: oilFlow 22s ease-in-out infinite alternate;
}
@keyframes oilFlow {
    from { background-position: 0% 0%, 100% 100%; }
    to   { background-position: 40% 60%, 60% 30%; }
}

/* ---------------------------------------------------------------------
   5. SECTION 08 - FOOD & BEVERAGES  (pinned horizontal scroll)
   --------------------------------------------------------------------- */
.hscroll {
    position: relative;
    background: var(--color-forest);
    color: var(--color-ivory);
}
.hscroll-head {
    max-width: 52rem;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hscroll-head .section-heading { color: var(--color-ivory); }
.hscroll-kicker {
    display: block;
    margin-bottom: 1.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-gold);
}
.hscroll-sub {
    margin-top: 1.5rem;
    font-size: var(--fs-lead);
    line-height: 1.7;
    color: var(--ivory-70);
    max-width: 52ch;
}

.hscroll-view {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-line) transparent;
}
.hscroll-view::-webkit-scrollbar { height: 3px; }
.hscroll-view::-webkit-scrollbar-thumb { background: var(--gold-line); }
.hscroll-pin { display: block; }
.hscroll-track {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2rem);
    padding-bottom: 1.5rem;
    will-change: transform;
}
.hpanel {
    position: relative;
    flex: 0 0 min(88vw, 760px);
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border: 1px solid var(--gold-line-soft);
    scroll-snap-align: center;
    background: var(--color-charcoal);
}
.hpanel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 1.1s var(--ease-out);
}
.hpanel:hover img { transform: scale(1.1); }
.hpanel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 44, 82, 0.92) 0%, rgba(11, 44, 82, 0.28) 55%, transparent 100%);
}
.hpanel-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.hpanel-index {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    color: var(--color-gold);
    margin-bottom: 0.7rem;
}
.hpanel-title {
    font-size: var(--fs-h3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-ivory);
}
.hpanel-text {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ivory-70);
    max-width: 40ch;
}
.hscroll-hint {
    display: block;
    margin-top: 1.25rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ivory-55);
}

/* pinned mode - toggled by JS on wide viewports without reduced motion */
/* overflow must stay visible here - an overflow:hidden ancestor would
   capture position:sticky and stop the pin from holding to the viewport */
.hscroll.hscroll--active .hscroll-view {
    overflow: visible;
    scroll-snap-type: none;
}
.hscroll.hscroll--active .hscroll-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hscroll.hscroll--active .hscroll-track { padding-bottom: 0; }
.hscroll.hscroll--active .hscroll-hint { display: none; }

/* ---------------------------------------------------------------------
   6. SECTION 09 - MAJOR TRANSITION  (cinematic chapter change)
   --------------------------------------------------------------------- */
.feed-transition {
    position: relative;
    background: var(--color-charcoal);
    color: var(--color-ivory);
}
.feed-transition.ft--active { height: 240vh; }

.ft-pin {
    position: relative;
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 3rem);
    overflow: hidden;
    padding-block: var(--section-y);
}
.ft--active .ft-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    padding: 0;
}
.ft-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ft-layer img { width: 100%; height: 100%; object-fit: cover; }
.ft-layer--grain { opacity: 0; will-change: opacity, transform; }
.ft-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 26, 48, 0.68), rgba(7, 26, 48, 0.82));
}
.ft-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 60rem;
    padding-inline: var(--gutter);
    will-change: opacity, transform;
}
.ft--active .ft-text {
    position: absolute;
    inset: 0;
    margin: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-inline: var(--gutter);
}
.ft--active .ft-text > * { max-width: 60rem; }
.ft--active .ft-text--in { opacity: 0; }
.ft-kicker {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--color-gold);
}
.ft-text .section-heading {
    color: var(--color-ivory);
    font-size: clamp(2.4rem, 6.6vw, 4.7rem);
}
.ft-sub {
    margin-top: 1.6rem;
    font-size: var(--fs-lead);
    line-height: 1.7;
    color: var(--ivory-70);
    max-width: 48ch;
    margin-inline: auto;
}
/* reduced-motion / no-JS: stack both statements over the grain still */
.feed-transition.ft--static .ft-layer--food { display: none; }
.feed-transition.ft--static .ft-layer--grain { opacity: 1; }
.feed-transition.ft--static .ft-text--out { margin-bottom: 3rem; }

/* ---------------------------------------------------------------------
   7. SECTION 10 - ANIMAL FEED HERO
   --------------------------------------------------------------------- */
.feed-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--color-ivory);
    background: var(--color-charcoal);
}
.feed-hero-layers {
    position: absolute;
    inset: -6% 0 0 0;
    height: 112%;
    z-index: 0;
    will-change: transform;
}
.feed-hero-layers img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feed-hero-layers img + img { mix-blend-mode: overlay; opacity: 0.45; }
.feed-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(7, 26, 48, 0.5) 0%, rgba(7, 26, 48, 0.32) 38%, rgba(7, 26, 48, 0.92) 100%),
        linear-gradient(90deg, rgba(7, 26, 48, 0.78) 0%, rgba(7, 26, 48, 0.15) 72%);
}
.feed-hero .container { position: relative; z-index: 2; max-width: 60rem; }
.feed-hero .section-heading {
    color: var(--color-ivory);
    font-size: clamp(2.8rem, 8vw, 5.4rem);
}
.feed-hero-sub {
    margin-top: 1.9rem;
    font-size: var(--fs-lead);
    line-height: 1.7;
    color: var(--ivory-90);
    max-width: 44ch;
}

/* ---------------------------------------------------------------------
   8. SECTION 11 + 12 - ANIMAL FEED PRODUCT WALL
   --------------------------------------------------------------------- */
.feedwall-sec { background: var(--color-forest); color: var(--color-ivory); }
.feedwall-head {
    max-width: 52rem;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.feedwall-head .section-heading { color: var(--color-ivory); }
.feedwall-kicker {
    display: block;
    margin-bottom: 1.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-gold);
}
.feedwall-sub {
    margin-top: 1.5rem;
    font-size: var(--fs-lead);
    line-height: 1.7;
    color: var(--ivory-70);
    max-width: 52ch;
}

.feedwall { margin-top: clamp(1rem, 3vw, 2rem); }

/* mobile-first: swipeable product carousel */
.feedwall-list {
    display: flex;
    gap: clamp(1rem, 4vw, 1.5rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1.25rem;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-line) transparent;
}
.feedwall-list::-webkit-scrollbar { height: 3px; }
.feedwall-list::-webkit-scrollbar-thumb { background: var(--gold-line); }

.feed-item {
    scroll-snap-align: center;
    flex: 0 0 82%;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    text-align: left;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
}
.feed-item > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--gold-line-soft);
    background: var(--color-charcoal);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1s var(--ease-out);
}
.feed-item.is-inview > img { clip-path: inset(0 0 0 0); }
.feed-item-num {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: var(--color-gold);
}
.feed-item-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.feed-line { height: 1px; width: 100%; background: var(--gold-line); }
.feed-item.is-active .feed-line { background: var(--color-gold); }

.feedwall-stage { margin-top: 1.25rem; }
.feed-stage-media { display: none; }
.feed-stage-foot {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.feed-counter {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--color-gold);
    flex-shrink: 0;
}
.feed-counter-cur { color: var(--color-ivory); }
.feed-progress {
    position: relative;
    flex: 1;
    height: 2px;
    background: rgba(238, 242, 248, 0.14);
}
.feed-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 14%;
    background: var(--color-gold);
    transition: width 0.5s var(--ease-out);
}

/* desktop: left product list + sticky dynamic image stage */
@media (min-width: 901px) {
    .feedwall {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
        gap: clamp(2.5rem, 6vw, 5rem);
        align-items: start;
    }
    .feedwall-list {
        flex-direction: column;
        overflow: visible;
        gap: 0;
        padding: 0;
        border-top: 1px solid var(--gold-line-soft);
    }
    .feed-item {
        flex: none;
        scroll-snap-align: none;
        flex-direction: row;
        align-items: baseline;
        gap: 1.25rem;
        padding: clamp(1rem, 2vw, 1.4rem) 0.25rem;
        border-bottom: 1px solid var(--gold-line-soft);
        cursor: pointer;
        transition: padding-left 0.5s var(--ease-out);
    }
    .feed-item > img,
    .feed-item .feed-line { display: none; }
    .feed-item-num { opacity: 0.5; transition: opacity 0.45s var(--ease-out); flex-shrink: 0; }
    .feed-item-name {
        color: var(--ivory-55);
        transition: color 0.45s var(--ease-out), transform 0.45s var(--ease-out);
    }
    .feed-item::after {
        content: "\2192";
        margin-left: auto;
        align-self: center;
        color: var(--color-gold);
        opacity: 0;
        transform: translateX(-8px);
        transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    }
    .feed-item:hover .feed-item-name,
    .feed-item.is-active .feed-item-name { color: var(--color-ivory); transform: translateX(6px); }
    .feed-item:hover .feed-item-num,
    .feed-item.is-active .feed-item-num { opacity: 1; }
    .feed-item.is-active { padding-left: 0.8rem; }
    .feed-item:hover::after,
    .feed-item.is-active::after { opacity: 1; transform: translateX(0); }

    .feedwall-stage { position: sticky; top: 12vh; margin-top: 0; }
    .feed-stage-media {
        display: block;
        position: relative;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        border: 1px solid var(--gold-line-soft);
        background: var(--color-charcoal);
    }
    .feed-stage-media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transform: scale(1.08);
        clip-path: inset(0 0 100% 0);
        transition: opacity 0.8s var(--ease-out), transform 1.1s var(--ease-out),
                    clip-path 1s var(--ease-out);
    }
    .feed-stage-media img.is-active { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); }
    .feed-stage-foot { margin-top: 1.5rem; }
    .feed-progress span { width: 0; }
}

/* ---------------------------------------------------------------------
   9. SECTION 13 - PRODUCT PHILOSOPHY  (FOOD | FEED split)
   --------------------------------------------------------------------- */
.philosophy { background: var(--color-ivory); color: var(--color-forest); }
.phil-head {
    max-width: 52rem;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.phil-head .section-heading {
    color: var(--color-forest);
    font-size: clamp(2.4rem, 5.6vw, 4rem);
}
.phil-head p {
    margin-top: 1.6rem;
    font-size: var(--fs-lead);
    line-height: 1.8;
    color: rgba(11, 44, 82, 0.8);
    max-width: 60ch;
}

.phil-split {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--gold-line-soft);
}
.phil-side {
    flex: 1 1 0;
    padding: clamp(1.75rem, 4vw, 3rem);
    transition: flex-grow 0.6s var(--ease-out), opacity 0.5s var(--ease-out),
                background 0.5s var(--ease-out);
}
.phil-side--feed { background: rgba(198, 164, 92, 0.05); }
.phil-divider {
    width: 1px;
    background: var(--gold-line-soft);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.phil-divider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.4s var(--ease-out);
}
.philosophy.in-view .phil-divider::after { transform: scaleY(1); }

.phil-side-label {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-forest);
    margin-bottom: 1.5rem;
}
.phil-side-count {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--color-gold);
    margin-left: 0.6rem;
}
.phil-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.phil-list li {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: rgba(11, 44, 82, 0.78);
    padding-left: 1.1rem;
    position: relative;
}
.phil-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 1px;
    background: var(--color-gold);
}
@media (hover: hover) and (pointer: fine) {
    .phil-split:hover .phil-side { opacity: 0.55; }
    .phil-side:hover { flex-grow: 1.45; opacity: 1; }
    .phil-split:focus-within .phil-side { opacity: 0.55; }
    .phil-side:focus-within { flex-grow: 1.45; opacity: 1; }
}

/* ---------------------------------------------------------------------
   10. SECTION 14 - PRODUCT ENQUIRY  (reuses .final-cta shell)
   --------------------------------------------------------------------- */
.enquiry .final-heading span { display: block; }
.enquiry-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.75rem;
}

/* ---------------------------------------------------------------------
   11. MAGNETIC BUTTONS + CUSTOM CURSOR
   --------------------------------------------------------------------- */
[data-magnetic] { transition: transform 0.35s var(--ease-out); will-change: transform; }

.gm-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-forest);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    will-change: transform, opacity;
}
.gm-cursor.is-active { opacity: 1; transform: scale(1); }

/* ---------------------------------------------------------------------
   12. RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hi-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hi-media { max-width: 34rem; margin-inline: auto; width: 100%; }
    .pdiv-grid,
    .pdiv--reverse .pdiv-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .pdiv--reverse .pdiv-media-wrap { order: 0; }
    .pdiv-media { max-width: 34rem; }
}

@media (max-width: 900px) {
    .feed-hero { min-height: 88vh; }
    .phil-split { flex-direction: column; }
    .phil-divider { width: 100%; height: 1px; }
    .phil-divider::after { transform-origin: left; transform: scaleX(0); }
    .philosophy.in-view .phil-divider::after { transform: scaleX(1); }
    .phil-side, .phil-split:hover .phil-side, .phil-side:hover { flex-grow: 1; opacity: 1; }
}

@media (max-width: 680px) {
    .ph-line { display: none; }
    .pdiv-media { max-width: none; }
    .hpanel { flex-basis: 86vw; }
    .enquiry-actions { flex-direction: column; }
    .enquiry-actions .btn { width: 100%; }
}

@media (max-width: 390px) {
    .pu-name { font-size: clamp(1.5rem, 8vw, 2rem); }
    .feed-hero .section-heading { font-size: clamp(2.2rem, 11vw, 3rem); }
}

/* ---------------------------------------------------------------------
   13. REDUCED MOTION
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .page-progress { display: none; }
    .ph-badge, .ph-line, .hero-cta-row { opacity: 1 !important; animation: none !important; }
    .ph-badge::before { animation: none !important; }
    .oil-sheen { animation: none !important; }
    .universe .pu-media img.is-active { opacity: 0.28; transform: none !important; }
    .universe .pu-media { transform: none !important; }
    .hi-img-1, .hi-img-2,
    .pdiv-media img,
    .feed-item > img,
    .feed-stage-media img { clip-path: none !important; transform: none !important; }
    .pdiv-media img { opacity: 1 !important; }
    .oil-frame rect { stroke-dashoffset: 0 !important; }
    .phil-divider::after { transform: none !important; }
    .feed-transition.ft--active { height: auto !important; }
    .ft--active .ft-pin { position: static !important; height: auto !important; padding-block: var(--section-y) !important; }
    .ft--active .ft-text { position: relative !important; opacity: 1 !important; transform: none !important; }
    .ft-layer--food { display: none; }
    .ft-layer--grain { opacity: 1 !important; transform: none !important; }
    .ft-text--out { margin-bottom: 3rem; }
    .gm-cursor { display: none !important; }
    [data-magnetic] { transform: none !important; }
}
