/* Revision 2026-10 (Rev 1): coconut value chain, product cards, company highlights. Loaded after extras.css. */

/* ═════════════ COCONUT SYSTEM ═════════════ */
.coco { background: var(--ink-900); position: relative; overflow: hidden; isolation: isolate; }
.coco::before { content: ""; position: absolute; inset: -10% -10% auto auto; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(227, 190, 110, .14), transparent); z-index: -1; pointer-events: none; }
.coco__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.coco__txt { display: grid; gap: clamp(16px, 2vw, 28px); align-content: center; }
.coco__txt .lead { max-width: 46ch; }
.coco__cta { margin-top: 6px; }
.coco__hint { color: var(--stone); }
.coco__stage { display: grid; gap: clamp(14px, 1.6vw, 22px); min-width: 0; }
.coco__viz { position: relative; width: 100%; max-width: 700px; margin-inline: auto; aspect-ratio: 1; isolation: isolate; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.coco__viz.is-drag { cursor: grabbing; }
.coco__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.coco__orb { fill: none; stroke: rgba(227, 190, 110, .38); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; animation: cocoring 40s linear infinite; }
.coco__orb--in { stroke: rgba(227, 190, 110, .16); animation-direction: reverse; }
@keyframes cocoring { to { stroke-dashoffset: -80; } }
.coco__core { position: absolute; left: 50%; top: 43%; width: 33%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; z-index: 50; pointer-events: none; }
.coco__core::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 190, 110, .26), transparent 72%); z-index: -1; }
.coco__img { width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .4)); animation: cocobob 7s ease-in-out infinite; }
.coco__core .mono { position: absolute; bottom: -9%; color: var(--gold-300); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
@keyframes cocobob { 50% { transform: translateY(-5px) rotate(-1deg); } }
.cnode { position: absolute; left: 0; top: 0; width: 26%; display: block; text-align: center; cursor: pointer; will-change: transform; -webkit-tap-highlight-color: transparent; }
.cnode:hover, .cnode:focus-visible, .cnode.is-on { opacity: 1 !important; z-index: 120 !important; }
.cnode__ph { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink-600); background: var(--ink-700); box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .8); transition: border-color .4s, transform .6s var(--ease), box-shadow .4s; }
.cnode__ph img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .8s var(--ease), filter .4s; filter: saturate(.85) brightness(.88); }
.cnode__n { position: absolute; top: 2%; inset-inline-start: 2%; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-300); color: var(--ink-900); display: grid; place-items: center; font-size: 11px; font-weight: 500; }
.cnode__l { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 130%; display: grid; gap: 2px; justify-items: center; }
.cnode__l b { font-family: var(--f-cond); font-weight: 500; text-transform: uppercase; font-size: clamp(.78rem, 1.6vw, 1.2rem); line-height: 1.05; color: var(--white); }
.cnode__l i { font-style: normal; color: var(--stone); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
html[lang^="zh"] .cnode__l b, html[lang="ar"] .cnode__l b { text-transform: none; }
.cnode:hover .cnode__ph, .cnode:focus-visible .cnode__ph, .cnode.is-on .cnode__ph { border-color: var(--gold-300); transform: scale(1.06); box-shadow: 0 0 0 6px rgba(227, 190, 110, .18), 0 24px 40px -18px rgba(0, 0, 0, .9); }
.cnode:hover img, .cnode:focus-visible img, .cnode.is-on img { transform: scale(1.1); filter: none; }
.cnode.is-on .cnode__l b { color: var(--gold-300); }
.cnode.is-chain .cnode__ph { border-color: rgba(227, 190, 110, .6); }
.cnode.is-chain .cnode__n { box-shadow: 0 0 0 4px rgba(227, 190, 110, .28); }
.coco__cap { min-height: 222px; border: 1px solid var(--ink-600); border-radius: var(--r-l); padding: clamp(18px, 2vw, 28px); background: rgba(48, 44, 39, .6); display: grid; gap: 8px; align-content: start; }
.coco__idle { color: var(--stone); align-self: center; }
.coco__step { color: var(--gold-300); }
.coco__name { font-family: var(--f-cond); font-weight: 500; text-transform: uppercase; font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.05; }
html[lang^="zh"] .coco__name, html[lang="ar"] .coco__name { text-transform: none; }
.coco__use { color: var(--cream); max-width: 60ch; line-height: 1.5; }
.coco__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--stone); }
.coco__meta b { color: var(--white); font-weight: 500; }
.coco__meta a { color: var(--gold-300); }
.coco__meta a:hover { color: var(--white); }
.coco__nums { margin-top: clamp(56px, 7vw, 110px); }
@media (max-width: 960px) { .coco__grid { grid-template-columns: 1fr; } .coco__txt { justify-items: start; } }
@media (max-width: 560px) {
  .coco__core { width: 29%; }
  .cnode { width: 30%; }
  .cnode__l { width: 150%; }
  .cnode__l i { display: none; }
  .cnode__n { width: 24px; height: 24px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .coco__orb, .coco__img { animation: none; } .coco__viz { cursor: default; } }

/* ═════════════ PRODUCTS ═════════════ */
.products { background: var(--ink-800); padding-bottom: calc(var(--sec-y) + clamp(60px, 9vw, 140px)); }
.pgroup { margin-top: clamp(56px, 7vw, 110px); }
.pgroup__head { display: grid; gap: 14px; margin-bottom: clamp(22px, 2.6vw, 40px); max-width: 1100px; }
.pgroup__head .title-l { font-size: clamp(2rem, 4.2vw, 4rem); }
html[lang^="zh"] .pgroup__head .title-l, html[lang="ar"] .pgroup__head .title-l { font-size: clamp(1.8rem, 3.6vw, 3.4rem); }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 26px); }
.pcard { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--ink-600); border-radius: var(--r-l); background: var(--ink-900); overflow: hidden; transition: border-color .4s, transform .6s var(--ease), box-shadow .6s; scroll-margin-top: 100px; }
.pcard:hover { border-color: rgba(227, 190, 110, .55); transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(0, 0, 0, .9); }
.pcard.is-flash { animation: pflash 2.2s ease; }
@keyframes pflash { 0%, 55% { border-color: var(--gold-300); box-shadow: 0 0 0 6px rgba(227, 190, 110, .28); } 100% { border-color: var(--ink-600); box-shadow: none; } }
.pcard__ph { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--ink-700); }
.pcard__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pcard:hover .pcard__ph img { transform: scale(1.06); }
.pcard__b { display: grid; gap: 10px; padding: clamp(18px, 1.8vw, 28px); align-content: start; grid-template-rows: auto auto auto 1fr auto; }
.pcard__cat { color: var(--gold-300); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.pcard__t { font-family: var(--f-cond); font-weight: 500; text-transform: uppercase; font-size: clamp(1.5rem, 2vw, 2.1rem); line-height: 1.05; color: var(--white); }
html[lang^="zh"] .pcard__t, html[lang="ar"] .pcard__t { text-transform: none; }
.pcard__d { color: var(--cream); font-size: .96rem; line-height: 1.5; opacity: .88; }
.pcard__s { border-top: 1px solid var(--ink-600); padding-top: 12px; display: grid; gap: 8px; align-content: start; }
.pcard__sh { color: var(--stone); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pcard__spec { display: grid; gap: 0; }
.pcard__spec > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--ink-600); font-size: .9rem; }
.pcard__spec > div:last-child { border-bottom: 0; }
.pcard__spec dt { color: var(--stone); }
.pcard__spec dd { color: var(--white); text-align: end; }
.pcard__req { color: var(--cream); opacity: .75; font-size: .92rem; font-style: italic; }
.pcard__f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.pcard__cap { color: var(--stone); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.pcard__cap b { color: var(--gold-300); font-weight: 500; font-size: 13px; }
.pcard .btn--line { --fg: var(--cream); --bd: rgba(255, 255, 255, .3); }
.pcard .btn--line .btn__ic { background: var(--gold-300); color: var(--ink-900); }
.pcard .btn--line:hover { --bg: var(--gold-300); --fg: var(--ink-900); --bd: var(--gold-300); }
.pcard .btn--line:hover .btn__ic { background: var(--ink-900); color: var(--gold-300); }
@media (max-width: 1100px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .pcards { grid-template-columns: 1fr; } }

/* ═════════════ COMPANY HIGHLIGHTS ═════════════ */
.hl { margin-top: clamp(64px, 8vw, 130px); }
.hl__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.hl__item { border: 1px solid var(--ink-600); border-radius: var(--r-m); background: var(--ink-900); padding: clamp(18px, 1.8vw, 28px); display: grid; gap: 10px; align-content: start; transition: border-color .4s; }
.hl__item:hover { border-color: var(--gold-300); }
.hl__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(227, 190, 110, .14); color: var(--gold-300); }
.hl__ic svg { width: 20px; height: 20px; }
.hl__l { color: var(--stone); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.hl__v { font-family: var(--f-body); font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.5rem); line-height: 1.2; color: var(--white); }
.hl__text { margin-top: clamp(22px, 2.6vw, 38px); max-width: 72ch; color: var(--cream); font-size: clamp(1.02rem, .8vw + .75rem, 1.25rem); line-height: 1.55; text-wrap: pretty; }
.hl__docs { margin-top: clamp(20px, 2.4vw, 32px); display: grid; gap: 12px; }
.hl__docs > .mono { color: var(--gold-300); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.hl__docs ul { display: flex; flex-wrap: wrap; gap: 8px; }
.hl__docs li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--ink-600); border-radius: 999px; font-size: .92rem; color: var(--cream); }
.hl__docs .pt__ck { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-300); color: var(--ink-900); }
.hl__docs .pt__ck svg { width: 11px; height: 11px; }
@media (max-width: 1000px) { .hl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hl__grid { grid-template-columns: 1fr; } }

/* The Catalogues list closes the products section */
.products .cat { margin-top: clamp(64px, 8vw, 130px); }

/* ═════════════ MOMENTS bento inside the (dark) Gallery ═════════════ */
.collage--g { margin-top: clamp(30px, 4vw, 60px); margin-bottom: clamp(56px, 7vw, 110px); padding-inline: 0; }
.collage--g .collage__grid { margin-top: 0; }
.collage--g .tile { box-shadow: none; }

/* ═════════════ ABOUT intro (right after the ticker) and Our Production + Story (after the products) ═════════════ */
.about__ipb { margin-top: clamp(16px, 1.8vw, 26px); max-width: 52ch; font-size: clamp(1.1rem, 1.2vw + .7rem, 1.5rem); line-height: 1.38; color: var(--ink-800); text-wrap: pretty; }
.about--intro .fog--top { top: calc(clamp(180px, 24vw, 380px) * -.3); }
.about--story .collage { margin-top: 0; }

/* ═════════════ RTL (Arabic) ═════════════ */
html[dir="rtl"] .coco__cap, html[dir="rtl"] .cnode__l { direction: rtl; }
html[lang="ar"] .coco__name, html[lang="ar"] .pcard__t, html[lang="ar"] .cnode__l b { line-height: 1.3; }
html[dir="rtl"] .coco__meta a { unicode-bidi: plaintext; }
