/* =============================================================================
   ORIVANA · v5 components — physics hero, brand deal stack, rolling capability
   rows, crunch finale, liquid image hover, film grain.
   ========================================================================== */

/* ---------------------------------------------------------------- grain */
body::after { content: ""; position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* ---------------------------------------------------------------- liquid hover canvas */

/* =============================================================================
   HERO — snack drop
   ========================================================================== */
.hx { min-height: 100svh; grid-template-rows: auto 1fr; padding-top: calc(var(--hdr) + clamp(28px, 3.4vw, 60px)); background: radial-gradient(90% 70% at 50% 100%, #2B2013 0%, var(--night) 70%); touch-action: pan-y; }
.hx.is-over { cursor: grab; }
.hx.is-grab.is-over, .hx.is-grab { cursor: grabbing; }
@media (max-width: 900px) {
}

/* =============================================================================
   RANGE — cleaner card face
   ========================================================================== */
.rc__face--f { grid-template-rows: 1fr auto; }
.rc__photo { inset: 12px 12px 30%; }
.rc__txt { grid-row: 2; padding: 0 8px 8px; }
.rc__name { font-size: clamp(1.7rem, 1rem + 1.4vw, 2.5rem) !important; line-height: 1; padding-right: 64px; }
.rc__sub { font-size: var(--t-sm); }
.rc__flip { width: auto; height: 34px; padding: 0 14px; border-radius: 99px; font-size: .78rem; font-weight: 600; right: 18px; bottom: 22px; }
.rc:hover .rc__flip { transform: translateY(-2px); }
.rng__title { max-width: 16ch; font-size: clamp(2.2rem, 1.2rem + 2.6vw, 4.2rem) !important; }
.rng__ghost { opacity: .35; }
.rc__desc { font-family: var(--fd) !important; }

/* =============================================================================
   STATEMENT
   ========================================================================== */
.stmt__t { font-size: clamp(2rem, .9rem + 3.6vw, 5.2rem) !important; line-height: 1.12; letter-spacing: -.01em; }

/* =============================================================================
   BRAND DEAL STACK
   ========================================================================== */
.hob { padding-block: clamp(80px, 9vw, 160px) var(--sec); overflow-x: clip; }
.hob__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); align-items: center; }
.hob__copy { display: grid; gap: 26px; align-content: center; }
.hob__copy .d-1 { font-size: clamp(2.4rem, 1.2rem + 3.2vw, 5rem); max-width: 13ch; }
.hob__copy .lead { max-width: 44ch; }
.hob__ctl { display: flex; align-items: center; gap: 16px; }
.hob__btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink); transition: background .3s, color .3s, transform .4s var(--e-out); }
.hob__btn svg { width: 18px; height: 18px; }
.hob__btn[data-deal-prev] svg { transform: rotate(180deg); }
.hob__btn:hover { background: var(--ink); color: var(--paper); }
.hob__count { font-family: var(--fd) !important; font-size: 1.6rem; color: var(--ink-3); min-width: 3.4ch; text-align: center; }
.hob__count b { color: var(--ink); font-weight: 400; }
.hob__nda { margin-top: 4px; }
.deal { position: relative; height: clamp(500px, 44vw, 640px); touch-action: pan-y; user-select: none; }
.deal__c { position: absolute; left: 0; right: 14%; top: 8%; bottom: 0; display: grid; grid-template-rows: 1.1fr auto; border-radius: 30px; overflow: hidden; background: var(--fc); color: var(--fi) !important; box-shadow: 0 30px 60px -30px rgba(22, 32, 26, .45), 0 2px 0 rgba(255, 255, 255, .2) inset; transform-origin: 50% 90%; cursor: grab; outline: none; }
.deal__c p, .deal__c h3, .deal__c .deal__k, .deal__c .deal__t, .deal__c .deal__p, .deal__c .deal__go { color: var(--fi) !important; }
.deal.is-drag .deal__c.is-top { cursor: grabbing; }
.deal__c:not(.is-top) .deal__body { opacity: .0; }
.deal__img { position: relative; margin: 12px 12px 0; border-radius: 20px; overflow: hidden; min-height: 0; }
.deal__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deal__body { display: grid; gap: 10px; padding: clamp(20px, 2.4vw, 32px); transition: opacity .4s; }
.deal__k { font-size: var(--t-sm); font-weight: 600; letter-spacing: .02em; opacity: .9; color: var(--fi) !important; }
.deal__t { font-size: clamp(2rem, 1.2rem + 2vw, 3.2rem) !important; line-height: .96; color: var(--fi) !important; }
.deal__p { font-size: .98rem; line-height: 1.55; opacity: .95; max-width: 46ch; color: var(--fi) !important; }
.deal__go { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; font-size: .95rem; border-bottom: 1px solid currentColor; padding-bottom: 3px; color: var(--fi) !important; }
.deal__go svg { width: 15px; height: 15px; transition: transform .4s var(--e-out); }
.deal__go:hover svg { transform: translateX(4px); }
.deal__hint { position: absolute; right: 0; bottom: -38px; font-size: var(--t-sm); color: var(--ink-3); }
@media (max-width: 900px) { .hob__grid { grid-template-columns: minmax(0, 1fr); } .deal { height: 560px; } .deal__c { right: 6%; } }

/* =============================================================================
   CAPABILITY ROWS
   ========================================================================== */
.cg__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px 60px; align-items: end; margin-bottom: clamp(36px, 4vw, 64px); max-width: none; }
.cg__head .d-1 { max-width: 13ch; }
.cg { position: relative; }
.cr { border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.cr__i { border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.cr__a { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr) 52px; gap: 24px; align-items: center; padding: clamp(18px, 2vw, 30px) 0; transition: padding .6s var(--e-out); }
.cr__n { font-size: .84rem; color: var(--ink-3); }
.cr__t { display: block; overflow: hidden; font-family: var(--fd); font-size: clamp(1.9rem, 1rem + 2.4vw, 3.6rem); line-height: 1.04; height: 1.04em; }
.cr__roll { display: grid; transition: transform .6s var(--e-press); }
.cr__roll > span:last-child { color: var(--g600); }
.cr__s { color: var(--ink-2); font-size: .98rem; max-width: 36ch; transition: transform .6s var(--e-out); }
.cr__go { justify-self: end; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); transition: background .35s, color .35s, transform .6s var(--e-out); }
.cr__go svg { width: 18px; height: 18px; }
.cr__a:hover, .cr__a:focus-visible { padding-left: 18px; }
.cr__a:hover .cr__roll, .cr__a:focus-visible .cr__roll { transform: translateY(-50%); }
.cr__a:hover .cr__go { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }
.cr__a:hover .cr__s { transform: translateX(-6px); }
.cr__follow { position: absolute; left: 0; top: 0; z-index: 5; width: 280px; aspect-ratio: 4 / 5; margin: -175px 0 0 -140px; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; scale: .7; transition: opacity .35s, scale .6s var(--e-out); box-shadow: 0 40px 70px -30px rgba(22, 32, 26, .55); }
.cr__follow.is-on { opacity: 1; scale: 1; }
.cr__follow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .cg__head { grid-template-columns: minmax(0, 1fr); } .cr__a { grid-template-columns: 34px minmax(0, 1fr) 40px; } .cr__s { grid-column: 2; grid-row: 2; } .cr__go { grid-row: 1 / span 2; grid-column: 3; width: 40px; height: 40px; } }

/* =============================================================================
   FINALE — crunch
   ========================================================================== */
.fin { text-align: left; padding-block: clamp(110px, 12vw, 200px); background: radial-gradient(70% 90% at 78% 60%, #3A2610 0%, var(--night) 62%); }
.fin__crumbs { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fin__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.fin__copy { display: grid; gap: 26px; justify-items: start; }
.fin__t { font-size: clamp(2.6rem, 1.2rem + 4vw, 6rem) !important; max-width: 12ch; line-height: .98; }
.fin .lead { max-width: 44ch; }
.crunch { display: grid; justify-items: center; gap: 14px; text-align: center; }
.crunch__btn { position: relative; display: grid; place-items: center; width: clamp(220px, 24vw, 340px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 55%, rgba(255, 179, 71, .22), rgba(255, 179, 71, 0) 65%); cursor: pointer; }
.crunch__btn::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(243, 238, 227, .22); animation: spinr 40s linear infinite; }
.crunch__btn img { width: 74%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .6)); transition: transform .5s var(--e-out); }
.crunch__btn:hover img { transform: rotate(-8deg) scale(1.04); }
.crunch__btn:focus-visible { outline: 2px solid var(--apricot); outline-offset: 6px; }
.crunch__meter { display: flex; align-items: baseline; gap: 8px; }
.crunch__meter .num { font-family: var(--fd) !important; font-size: clamp(3rem, 2rem + 3vw, 5.4rem); line-height: 1; color: var(--paper); transition: color .4s; }
.crunch.is-pass .crunch__meter .num { color: #B5D35A; }
.crunch__meter small { color: rgba(243, 238, 227, .55); font-size: .95rem; }
.crunch__cap { color: rgba(243, 238, 227, .72); max-width: 30ch; min-height: 3em; }
.crunch__lab { color: var(--paper); font-size: .92rem; }
@media (max-width: 860px) { .fin__grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .crunch__btn::before { animation: none; } }

/* ---------- Packaging shelf (build-your-brand) ---------- */
.shelf { --board: #2a2016; position: relative; margin-top: clamp(32px, 4vw, 56px); overflow-x: clip; overflow-clip-margin: 8px; }
.shelf__row { display: grid; grid-template-columns: 1.05fr 1fr 1.2fr; align-items: end; gap: clamp(12px, 3vw, 56px); height: clamp(240px, 25vw, 380px); padding: 0 clamp(8px, 3vw, 48px); }
.shelf__item { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
.shelf__pack { position: relative; height: var(--h); width: 100%; display: flex; justify-content: center; align-items: flex-end; }
.shelf__pack img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; filter: saturate(.92) brightness(.97); transition: filter .5s, transform .7s cubic-bezier(.2,.8,.2,1); position: relative; z-index: 1; user-select: none; }
.shelf__shadow { position: absolute; left: 14%; right: 14%; bottom: -6px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.42), transparent); transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s; }
.shelf__item:hover .shelf__pack img, .shelf__item:focus-visible .shelf__pack img { transform: translateY(-14px) rotate(-1.5deg); }
.shelf__item:hover .shelf__shadow { transform: translateY(14px) scaleX(.78); opacity: .55; }
.shelf__item.is-on .shelf__pack img { filter: none; }
.shelf__item:not(.is-on) .shelf__pack img { filter: saturate(.55) brightness(.92) contrast(.95); }
.shelf__item:not(.is-on):hover .shelf__pack img { filter: saturate(.85); }
.shelf__item:focus-visible { outline: none; }
.shelf__item:focus-visible .shelf__tag { outline: 2px solid var(--apricot); outline-offset: 3px; }
/* the plank */
.shelf__board { position: relative; height: 22px; margin: 0 -8px; border-radius: 3px; background: linear-gradient(#5b4632 0, #45331f 30%, var(--board) 100%); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 18px 30px -12px rgba(0,0,0,.45); }
.shelf__board::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px); mix-blend-mode: overlay; }
/* shelf-edge labels hang off the plank */
.shelf__tag { position: absolute; top: calc(100% + 30px); left: 50%; width: min(250px, 92%); translate: -50% 0; display: grid; gap: 4px; padding: 12px 14px 10px; text-align: left; background: #fffdf6; color: var(--ink); border-radius: 2px; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 10px 22px -12px rgba(0,0,0,.35); transform-origin: 50% -30px; transition: transform .6s cubic-bezier(.3,1.6,.5,1), background .3s; z-index: 2; }
.shelf__tag::before { content: ""; position: absolute; top: -10px; left: 50%; width: 22px; height: 10px; translate: -50% 0; background: rgba(160,170,165,.55); clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%); }
.shelf__item:hover .shelf__tag { transform: rotate(-3deg); }
.shelf__item.is-on .shelf__tag { background: var(--apricot); }
.shelf__tag small { font-size: .7rem; letter-spacing: .02em; color: var(--ink-3); }
.shelf__item.is-on .shelf__tag small { color: rgba(11,26,19,.65); }
.shelf__tag b { font-family: var(--f); font-weight: 600; font-size: .98rem; line-height: 1.2; }
.shelf__moq { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.shelf__moq strong { font-family: var(--fd); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1; letter-spacing: -.01em; }
.shelf__moq em { font-style: normal; font-size: .74rem; color: var(--ink-3); }
.shelf__item.is-on .shelf__moq em { color: rgba(11,26,19,.65); }
.shelf__code { display: block; height: 16px; margin-top: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 5px, transparent 5px 6px, var(--ink) 6px 7px, transparent 7px 10px); opacity: .7; }
.shelf__panels { margin-top: clamp(170px, 14vw, 200px); display: grid; }
.shelf__panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 72px); align-items: start; padding-top: 28px; border-top: 1px solid var(--line); }
.shelf__panel[hidden] { display: none; }
.shelf__panel .body { max-width: 46ch; color: var(--ink-2); }
.shelf__panel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; }
.shelf__panel dt { font-size: .76rem; color: var(--ink-3); margin-bottom: 4px; }
.shelf__panel dd { margin: 0; font-weight: 500; }
@media (max-width: 760px) {
  .shelf__row { height: 220px; gap: 10px; padding: 0; }
  .shelf__tag { width: 100%; padding: 9px 9px 8px; top: calc(100% + 24px); }
  .shelf__tag b { font-size: .8rem; }
  .shelf__tag small { display: none; }
  .shelf__moq strong { font-size: 1.2rem; }
  .shelf__moq em:first-child { display: none; }
  .shelf__moq { gap: 3px; }
  .shelf__panels { margin-top: 170px; }
  .shelf__panel, .shelf__panel dl { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .shelf__pack img, .shelf__tag, .shelf__shadow { transition: none; } }
