/* =============================================================================
   ORIVANA · v3 "House of Crunch"
   Legacy page layer.
   Brand palette kept (deep green #1A4331, light green #88C999, apricot #FFB347);
   each product family gets its own colour so the range reads as a family of brands.
   This layer sits on top of the v2 system and re-voices it site-wide.
   ========================================================================== */

:root {
  --paper: #F4F0E7;          /* warm, food-friendly paper */
  --paper-2: #EAE4D6;
  --night: #0B1510;          /* deepest green-black */
  --lotus: #F4BFCB;
  --okra: #B5D35A;
  --millet: #F4C84A;
  --chana: #E9A15A;
  --chili: #E9502A;
  --t-xl: clamp(3.6rem, 1rem + 10vw, 13rem);
  --t-1: clamp(2.6rem, 1.1rem + 5.2vw, 7.2rem);
  --t-2: clamp(2.1rem, 1.1rem + 3.6vw, 5rem);
  --t-3: clamp(1.55rem, 1.1rem + 1.7vw, 2.7rem);
}

/* ---------------------------------------------------------------- type re-voice */
body { font-family: var(--f); font-stretch: normal; letter-spacing: -.003em; }
.d-xl, .d-1, .d-2, .d-3, .h-4, .h-5, .ph__title, h1, h2, h3 { font-family: var(--fd); font-stretch: normal; }
.d-xl, .d-1, .d-2, .d-3 { font-weight: 600; letter-spacing: -.022em; word-spacing: .04em; line-height: .96; }
.d-1 { line-height: .92; }
.d-3 { letter-spacing: -.015em; line-height: 1.04; }
.h-4 { font-weight: 600; letter-spacing: -.015em; }
.h-5 { font-weight: 600; letter-spacing: -.005em; }
.d-xl em, .d-1 em, .d-2 em, .d-3 em, .h-4 em, .ph__title em, .press {
  font-family: var(--fd); font-style: normal; font-stretch: normal; font-weight: 300; letter-spacing: -.02em; color: var(--accent-em, var(--g600));
}
.on-dark .d-xl em, .on-dark .d-1 em, .on-dark .d-2 em, .on-dark .d-3 em, .on-dark .h-4 em, .on-dark .ph__title em { color: var(--accent-em, var(--apricot)); }
.label { font-family: var(--f); font-stretch: normal; font-weight: 700; letter-spacing: .08em; font-size: .72rem; }
.num { font-family: var(--fd); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.btn { font-family: var(--f); font-stretch: normal; font-weight: 700; letter-spacing: -.005em; }
.lead { letter-spacing: -.01em; }
.nav a, .menu-btn, .snd { font-stretch: normal; }
.ulink { font-stretch: normal; }
/* legacy width rules become normal-width type in the v9 system */
.svc__t, .pf__name, .tile__b b, .metric__n, .statgrid b, .dcard__q, .kin span, .film__h { font-family: var(--fd); font-stretch: normal !important; }
.pf__n, .film__big, .dcard__stat b, .dossier__no, .kin em { font-family: var(--fd); font-stretch: normal !important; font-weight: 300; }
.svc__a:hover .svc__t, .pf__i:hover .pf__name { font-stretch: normal; letter-spacing: -.045em; }


/* =============================================================================
   HOME · 1 — HERO
   ========================================================================== */
.hx { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: calc(var(--hdr) + clamp(20px, 3vw, 48px)); background: radial-gradient(120% 90% at 70% 0%, #17321F 0%, var(--night) 58%); color: var(--on-dark); overflow: hidden; isolation: isolate; }
@media (max-width: 900px) {
}

/* =============================================================================
   HOME · 2 — THE RANGE (pinned 3D deck)
   ========================================================================== */
.rng { position: relative; background: color-mix(in oklab, var(--rc) 24%, var(--night)); color: var(--on-dark); transition: background-color 1s var(--e-out); overflow: hidden; }
.rng__pin { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-block: calc(var(--hdr) + 16px) clamp(18px, 3vh, 36px); }
.rng__bg { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.rng__ghost { font-family: var(--fd); font-weight: 600; font-size: 17vw; line-height: 1; letter-spacing: -.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklab, var(--rc) 55%, transparent); opacity: .55; transition: opacity .5s; }
.rng__head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.rng__title { font-family: var(--fd); font-weight: 600; font-size: var(--t-2); line-height: .94; letter-spacing: -.022em; word-spacing: .05em; }
.rng__title em { font-style: normal; font-weight: 300; color: var(--rc); transition: color .8s; }
.rng__lede { max-width: 40ch; font-size: .98rem; color: var(--on-dark-2); }
.rng__stage { position: relative; z-index: 1; display: grid; place-items: center; perspective: 1900px; perspective-origin: 50% 40%; min-height: 0; }
.rc { position: absolute; width: clamp(250px, 23vw, 380px); aspect-ratio: 3 / 4.15; transform-style: preserve-3d; cursor: pointer; outline: none; will-change: transform, opacity; }
.rc__body { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); transition: transform .9s var(--e-out); }
.rc.is-flip { --flip: 180deg; }
.rc__face { position: absolute; inset: 0; border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: var(--c); color: var(--ci); }
.rc__face--f { transform: translateZ(9px); display: grid; grid-template-rows: auto 1fr auto; padding: 12px; overflow: visible; }
.rc__face--b { transform: rotateY(180deg) translateZ(9px); display: grid; align-content: start; gap: 16px; padding: clamp(20px, 2vw, 28px); }
.rc__photo { position: absolute; inset: 12px 12px 34%; border-radius: 18px; overflow: hidden; }
.rc__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--e-out); }
.rc.is-on .rc__photo img { transform: scale(1); }
.rc__n { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 10px; border-radius: 99px; background: var(--c); color: var(--ci); font-size: .78rem; font-weight: 600; }
.rc__txt { position: relative; z-index: 2; grid-row: 3; padding: 0 10px 10px; }
.rc__name { font-family: var(--fd); font-weight: 600; font-size: clamp(1.6rem, .9rem + 1.4vw, 2.45rem); line-height: .95; letter-spacing: -.02em; padding-right: 48px; }
.rc__sub { margin-top: 6px; font-size: var(--t-sm); font-weight: 500; opacity: .78; }
.rc__pop { position: absolute; z-index: 3; right: -18%; top: -9%; width: 56%; transform: translateZ(70px) rotate(-6deg); filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .45)); pointer-events: none; transition: transform 1s var(--e-out); }
.rc.is-on .rc__pop { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
.rc__flip { position: absolute; z-index: 4; right: 22px; bottom: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ci); color: var(--c); transition: transform .5s var(--e-out); }
.rc__flip svg { width: 16px; height: 16px; }
.rc:hover .rc__flip { transform: rotate(90deg); }
.rc__face--b .rc__n { justify-self: start; min-width: 0; background: color-mix(in oklab, var(--ci) 12%, transparent); }
.rc__desc { font-family: var(--fd); font-weight: 500; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.18; letter-spacing: -.02em; }
.rc__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rc__tags li { padding: 6px 12px; border-radius: 99px; border: 1px solid color-mix(in oklab, var(--ci) 30%, transparent); font-size: var(--t-sm); font-weight: 600; }
.rc__dl { display: grid; gap: 10px; padding-top: 14px; border-top: 1px dashed color-mix(in oklab, var(--ci) 30%, transparent); font-size: .86rem; }
.rc__dl dt { opacity: .62; font-size: .76rem; }
.rc__dl dd { font-weight: 600; }
.rc__go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; }
.rc__go svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--ci); color: var(--c); }
.rc__edge { position: absolute; background: color-mix(in oklab, var(--c) 62%, #000); }
.rc__edge--r, .rc__edge--l { top: 22px; bottom: 22px; width: 18px; }
.rc__edge--r { right: -9px; transform: rotateY(90deg); }
.rc__edge--l { left: -9px; transform: rotateY(-90deg); }
.rc__edge--t, .rc__edge--b { left: 22px; right: 22px; height: 18px; }
.rc__edge--t { top: -9px; transform: rotateX(90deg); }
.rc__edge--b { bottom: -9px; transform: rotateX(-90deg); }
.rng__foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.rng__idx { display: flex; flex-wrap: wrap; gap: 4px; }
.rng__idx button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: .84rem; font-weight: 600; color: var(--on-dark-3); border: 1px solid transparent; transition: color .3s, background .4s, border-color .4s; }
.rng__idx button .num { font-size: .72rem; opacity: .7; }
.rng__idx button:hover { color: var(--on-dark); }
.rng__idx button.is-on { color: var(--ci-on, var(--ink)); background: var(--rc); }
.rng__count { font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); font-weight: 300; color: var(--on-dark-3); white-space: nowrap; }
.rng__count b { color: var(--on-dark); font-weight: 500; }
.rng.is-static .rng__stage { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px var(--gut) 40px; perspective: none; place-items: initial; }
.rng.is-static .rc { position: relative; flex: none; scroll-snap-align: center; }
@media (max-width: 900px) {
  .rng__head { flex-direction: column; align-items: start; }
  .rng__idx { display: none; }
  .rc { width: min(72vw, 320px); }
}

/* =============================================================================
   HOME · 3 — STATEMENT with photos inside the sentence
   ========================================================================== */
.stmt { background: var(--paper); padding-block: var(--sec); }
.stmt__t { font-family: var(--fd); font-weight: 500; font-size: clamp(2rem, .9rem + 3.8vw, 5.4rem); line-height: 1.08; letter-spacing: -.025em; word-spacing: .04em; color: var(--ink); text-wrap: pretty; }
.stmt__t em { font-style: normal; font-weight: 300; color: var(--g600); }
.stmt__t .w { opacity: .14; transition: opacity .25s; }
.stmt__t .w.is-lit { opacity: 1; }
.pill { display: inline-block; vertical-align: -.08em; width: calc(var(--w) * 1em * var(--pw, 1)); height: .8em; margin-inline: .06em; border-radius: 999px; overflow: hidden; background: var(--paper-2); transition: width .9s var(--e-out); }
.pill img { width: 100%; height: 100%; object-fit: cover; }
.js .stmt__t .pill { --pw: 0; }
.js .stmt__t .pill.is-open { --pw: 1; }

/* =============================================================================
   HOME · 4 — HOUSE OF BRANDS (folders)
   ========================================================================== */
.hob { background: var(--paper); padding-block: 0 var(--sec); }
.files { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.file { position: relative; height: clamp(440px, 36vw, 540px); perspective: 1200px; outline: none; color: var(--fi); }
.file::before { content: ""; position: absolute; inset: 46px 0 0; border-radius: 0 22px 22px 22px; background: color-mix(in oklab, var(--fc) 78%, #000); }
.hob__nda { display: flex; gap: 10px; align-items: center; margin-top: 28px; font-size: var(--t-sm); color: var(--ink-2); }
.hob__nda svg { width: 18px; height: 18px; color: var(--g600); flex: none; }
@media (max-width: 1100px) { .files { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hob__head { grid-template-columns: minmax(0, 1fr); } .files { grid-template-columns: minmax(0, 1fr); } .file { height: 460px; } }

/* =============================================================================
   HOME · 5 — EXPANDING MEDIA
   ========================================================================== */

/* =============================================================================
   HOME · 8 — CAPABILITY GRID
   ========================================================================== */
.cg { background: var(--paper); padding-block: var(--sec); }
.cg__head { margin-bottom: clamp(36px, 4vw, 64px); }
.cg__head .d-1 { max-width: 16ch; }
.cell { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; min-height: clamp(220px, 22vw, 320px); padding: clamp(20px, 2vw, 32px); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); overflow: hidden; isolation: isolate; color: var(--ink); transition: color .4s; }
.cell:hover, .cell:focus-visible { color: var(--on-dark); }
.certs--v3 { display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(28px, 3vw, 48px); border-top: 1px solid var(--line); }
.certs--v3 li { flex: 1 1 160px; padding: 16px 18px 0 0; display: grid; gap: 2px; font-size: var(--t-sm); color: var(--ink-3); }
.certs--v3 b { color: var(--ink); font-weight: 700; font-size: var(--t-sm); }
@media (max-width: 560px) { .cg__grid { grid-template-columns: minmax(0, 1fr); } .cell { min-height: 180px; } }

/* =============================================================================
   HOME · 10 — FINALE
   ========================================================================== */
.fin { position: relative; overflow: hidden; background: var(--night); color: var(--on-dark); padding-block: clamp(120px, 16vw, 240px) clamp(160px, 22vw, 320px); text-align: center; isolation: isolate; }
.fin__t { font-family: var(--fd); font-weight: 600; font-size: var(--t-1); line-height: .92; letter-spacing: -.025em; word-spacing: .05em; max-width: 14ch; }
.fin__t em { font-style: normal; font-weight: 300; color: var(--apricot); }
.fin .lead { color: var(--on-dark-2); max-width: 52ch; }

/* ---------------------------------------------------------------- tour/stage/mach re-tune for v3 */
.is-home .tour { background: var(--paper); }
.is-home .ps { --accent-em: var(--apricot); }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hx__badge svg, .hx__clock i, .rc.is-on .rc__pop { animation: none; }
  .js .stmt__t .pill { --pw: 1; }
  .stmt__t .w { opacity: 1; }
}

/* =============================================================================
   PAGE HERO · v3 layouts (full-bleed photo · split with 3D photo card · stack)
   ========================================================================== */
.ph { background: var(--night); }
/* full-bleed */
/* split */
@media (max-width: 900px) {
}
