/* ============================================================================
   Planet A Foods — homepage (Relaunch 2026), designer system v1
   Rethink Sans · brand purple #320F99 · purple tints · Ronchi gold #EEB650 · light grey #F7F7F9 · pills, rounded image
   tiles with overlay copy, the striped ring mark. Each section is sized for
   one 16:9 desktop screen; phones fall back to a natural flow.
   Scoped to this page only; sub-pages keep using styles.css.
   ========================================================================== */

:root {
  --purple:    #320F99;   /* brand purple */
  --purple-2:  #4A2BB0;
  --purple-dk: #1F0866;
  --purple-mid: #9C8DD9;   /* soft purple: the former light-green accent slots (tech pictogram shade) */
  --gold:      #EEB650;   /* Ronchi (Brand Guideline): the warm contrast to the purple */
  --gold-lt:   #FBF0DA;
  --lilac:     #EFECF9;   /* light purple tint: hovers, soft chips */
  --lilac-2:   #DCD6F3;   /* the "A" / ring mark: a stronger purple tint */
  --grey:      #F7F7F9;
  --white:     #FFFFFF;
  --ink:       #0E0B1A;
  --ink-2:     #3D3A4A;
  --muted:     #6E6A7C;

  --maxw: 1600px;
  --gutter: clamp(20px, 4vw, 70px);
  --r: 8px;
  --sans: "Rethink Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.16, .84, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.025em; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 3.2vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.8rem); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.lead { font-size: clamp(1rem, 1.15vw, 1.15rem); color: var(--ink-2); max-width: 46ch; margin-top: 18px; }

/* ---- pills, buttons ---- */
.pill { display: inline-flex; align-items: center; padding: 5px 15px 6px; border-radius: 999px; background: var(--purple); color: #fff; font-weight: 500; font-size: 1.05rem; }
.pill-light { background: #fff; color: var(--purple); }
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; border-radius: 6px; font-weight: 500; font-size: .95rem;
  background: var(--purple); color: #fff; transition: background .3s ease, transform .4s var(--ease);
}
.btn:hover { background: var(--purple-2); transform: translateY(-2px); }
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translate(3px, -3px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--lilac); }
.btn-block { padding: 22px 26px; font-size: 1.15rem; border-radius: 8px; }
.btn-text { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; font-size: .95rem; color: #fff; }
.btn-text span { transition: transform .35s var(--ease); }
.btn-text:hover span { transform: translateY(3px); }
.btn-text.dark { color: var(--purple); }
.btn-text.dark:hover span, .impact .btn-text:hover span { transform: translate(3px, -3px); }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- sections ---- */
.screen { position: relative; padding: 80px 0; }

/* ---- facts ---- */
.fact b { display: block; white-space: nowrap; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-size: clamp(2.2rem, 4.2vw, 4.4rem); font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 10px; font-size: .92rem; color: var(--purple); }

/* ============================ NAV ============================ */
/* Top of page: transparent over the hero film, white logo.
   Once you scroll: a slim white bar with a small purple logo. It slides away
   while you read downwards and comes back as soon as you scroll up. */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 96px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter);
  transition: transform .45s var(--ease), background .35s ease, height .35s var(--ease), box-shadow .35s ease;
}
.nav.scrolled { height: 68px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(14,11,26,.08); }
.nav.away { transform: translateY(-100%); }
.brand { color: #fff; transition: color .35s ease; display: block; }
.brand .logo { width: 40px; height: auto; aspect-ratio: 57 / 95; display: block; transition: width .35s var(--ease); }
.nav.scrolled .brand { color: var(--purple); }
.nav.scrolled .brand .logo { width: 30px; }
.nav-pill {
  display: flex; align-items: center; gap: 4px;
  background: #fff; border-radius: 6px; padding: 5px 6px 5px 10px;
  box-shadow: 0 10px 30px -18px rgba(14, 11, 26, .5); transition: box-shadow .35s ease, background .35s ease;
}
.nav.scrolled .nav-pill { box-shadow: none; background: transparent; }
.nav-pill a { font-size: .93rem; font-weight: 500; padding: 6px 10px; border-radius: 4px; transition: background .25s ease, color .25s ease; }
.nav-pill a:hover { background: var(--lilac); color: var(--purple); }
.lang { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; border: 0; background: none; border-radius: 4px; cursor: pointer; }
.lang:hover { background: var(--lilac); color: var(--purple); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 6px; background: #fff; cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 10px 30px -18px rgba(14,11,26,.5); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 1.6px; background: var(--ink); }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4.4px); }

/* Hover menus: Solutions and Company open their subpages on hover (or keyboard focus) */
.nav-item { position: relative; display: flex; }
.nav-item > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; transition: transform .25s ease; }
.nav-item:hover > a::after, .nav-item:focus-within > a::after { transform: translateY(2px) rotate(225deg); }
.nav-sub { position: absolute; top: 100%; left: -6px; z-index: 5; padding-top: 12px;   /* padding bridges the gap so the menu stays open */
  display: flex; gap: 28px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
.nav-sub::before { content: ""; position: absolute; inset: 12px 0 0; z-index: -1; background: #fff; border-radius: 8px; box-shadow: 0 18px 40px -18px rgba(14,11,26,.45); }
.nav-sub > div { display: flex; flex-direction: column; min-width: 190px; padding: 14px 8px 10px; }
.nav-sub-wide { left: -6px; }
.nav-item:nth-last-of-type(1) .nav-sub:not(.nav-sub-wide) { left: auto; right: -6px; }
.nav-sub-head { padding: 0 10px 6px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }
.nav-sub a { white-space: nowrap; color: var(--ink); }
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
@media (max-width: 999px) { .nav-sub, .nav-item > a::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .nav-sub { transition: none; } }

/* ============================ 01 HERO ============================ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; color: #fff; overflow: hidden; background: #1a1210; display: flex; align-items: flex-end; }
.hero-stage, .reel { position: absolute; inset: 0; }
.hero-stage { z-index: 0; isolation: isolate; }   /* keeps the reel layering below the shade and copy */
.reel { opacity: 0; z-index: 0; transition: opacity 0s 2.4s; }   /* hidden only once the next shot has fully faded in */
.reel.was { opacity: 1; z-index: 1; transition: none; }
.reel.on { opacity: 1; z-index: 2; transition: none; animation: fx-dissolve 2s cubic-bezier(.45,0,.25,1) both; }
/* four calm reveals, rotated by home.js (data-fx) so consecutive cuts differ */
.reel.on[data-fx="wipe"] { animation: fx-wipe 1.6s cubic-bezier(.7,0,.2,1) both; }
.reel.on[data-fx="rise"] { animation: fx-rise 1.6s cubic-bezier(.7,0,.2,1) both; }
.reel.on[data-fx="drop"] { animation: fx-drop 1.6s cubic-bezier(.7,0,.2,1) both; }
.reel.on[data-fx="zoom"] { animation: fx-zoom 2s cubic-bezier(.3,0,.2,1) both; }
.reel.on[data-fx="slow"] { animation: fx-dissolve 3.2s cubic-bezier(.45,0,.25,1) both; }   /* gentler crossfade where the reel loops back to the start */
@keyframes fx-dissolve { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx-drop { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx-zoom { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel.on video, .reel.on img, .reel.was video, .reel.was img { animation: push 9s cubic-bezier(.3,.5,.4,1) both; }   /* slow push-in; keeps running while the shot fades out, so it never snaps */
@keyframes push { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(0deg, rgba(14,8,6,.78) 0%, rgba(14,8,6,.35) 45%, rgba(14,8,6,.25) 100%),
  linear-gradient(90deg, rgba(14,8,6,.45), transparent 60%); }
.hero-copy { position: relative; z-index: 1; padding-bottom: clamp(48px, 9vh, 100px); }
.hero h1 { max-width: 13ch; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(24px, 4vh, 48px); }
.hero-foot p { color: #fff; font-weight: 500; font-size: clamp(1rem, 1.15vw, 1.2rem); max-width: 44ch; }
.hero-actions { display: flex; align-items: center; gap: 32px; flex: 0 0 auto; }
.reel-index { position: absolute; z-index: 1; right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; text-align: right; }
.reel-index li { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); position: relative; padding-right: 34px; transition: color .6s ease; }
.reel-index li.on { color: #fff; }
/* the name is a link to its page; the stripe is a button that shows that shot */
.reel-index { z-index: 2; }
.reel-name { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; transition: color .3s ease; }
.reel-name:hover, .reel-name:focus-visible { color: #fff; }
.reel-go { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 40px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.reel-go::after { content: ""; position: absolute; right: 8px; top: 50%; width: 22px; height: 1.5px; background: rgba(255,255,255,.3); transition: background .3s ease, transform .3s ease; }
.reel-go:hover::after, .reel-go:focus-visible::after { background: rgba(255,255,255,.9); transform: scaleY(1.8); }
.reel-go:focus-visible, .reel-name:focus-visible { outline: 1.5px solid #fff; outline-offset: 3px; border-radius: 3px; }
.reel-index li.on .reel-go::before { content: ""; position: absolute; right: 8px; top: 50%; height: 1.5px; width: 22px; background: #fff; transform-origin: left; animation: tick 5.2s linear both; z-index: 1; }
@keyframes tick { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============================ 02 NUMBERS + WHY NOW ============================ */

.why { background: var(--purple); color: #fff; overflow: hidden; }
.why-grid { display: grid; gap: 32px; }
.why h2 { margin-top: 26px; max-width: 16ch; }
.why-media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--purple-dk); }
.why-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 6s var(--ease); }
.why-media img.on { opacity: 1; transform: scale(1); }
.drivers { display: grid; }
.driver { text-align: left; background: none; border: 0; border-top: 1px solid rgba(255,255,255,.18); padding: 18px 0; cursor: pointer; color: rgba(255,255,255,.55); transition: color .35s ease; }
.driver:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.driver .no { display: block; font-size: .8rem; letter-spacing: .1em; margin-bottom: 6px; }
.driver h3 { font-size: clamp(1.4rem, 2vw, 2.1rem); transition: transform .5s var(--ease); }
.driver p { overflow: hidden; color: rgba(255,255,255,.88); font-size: 1rem; max-width: 44ch; opacity: 0; max-height: 0; transition: opacity .5s ease, margin .5s var(--ease), max-height .6s var(--ease); }
.driver.on, .driver:hover { color: #fff; }
.driver.on h3 { transform: translateX(6px); }
.driver.on p { opacity: 1; max-height: 8em; margin-top: 10px; }
.driver:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ============================ TILES (tech, portfolio, company) ============================ */
.tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; color: #fff; aspect-ratio: 4 / 3; background: var(--purple-dk); isolation: isolate; }
.tile-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.tile-media img, .tile-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,11,26,.48) 0%, rgba(14,11,26,.05) 42%, rgba(14,11,26,.15) 62%, rgba(14,11,26,.62) 100%); }
.tile h3 { position: absolute; left: 26px; top: 22px; right: 80px; }
.tile p { position: absolute; left: 26px; bottom: 22px; right: 26px; color: #fff; font-weight: 500; font-size: clamp(.92rem, 1.05vw, 1.05rem); max-width: 30ch; }
.badge { position: absolute; right: 20px; top: 20px; min-width: 44px; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: var(--purple); font-weight: 600; font-size: .95rem; }
.tile:hover .tile-media img, .tile:hover .tile-media video { transform: scale(1.05); }
/* slow, continuous drift on still images = motion without distraction */
.drift img { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translate3d(-1%, 0, 0); } to { transform: scale(1.1) translate3d(1.5%, -1%, 0); } }

/* ============================ 03 TECHNOLOGY ============================ */
.sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: clamp(32px, 6vh, 72px); }
.tiles { display: grid; gap: 20px; }
.layers .tile { transition: transform .6s var(--ease); }
.layers .tile:hover { transform: translateY(-6px); }
.tech-foot { display: grid; grid-template-columns: repeat(3, auto); gap: 28px 40px; align-items: end; margin-top: clamp(36px, 6vh, 72px); }
.tech-foot .btn-block { grid-column: 1 / -1; }

/* ============================ 04 PORTFOLIO ============================ */
.portfolio { background: var(--grey); }
.center-head { text-align: center; margin-bottom: clamp(32px, 6vh, 64px); }
.center-head h2 { margin-top: 30px; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; column-gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-bottom: 4px;
}
.track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; display: block; }
.tag { display: inline-block; margin-bottom: 14px; padding: 4px 14px; border-radius: 999px; background: var(--purple); color: #fff; font-size: .82rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.tag-soft { background: var(--gold); color: var(--ink); }
.tag-line { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 1.5px var(--purple); }
.slide:hover .tile-media img { transform: scale(1.05); }
.is-next .tile-media img { filter: saturate(.6); }
.is-next::after { background: linear-gradient(180deg, rgba(46,17,147,.55), rgba(46,17,147,.25) 50%, rgba(46,17,147,.7)); }
.arrows { display: flex; justify-content: center; gap: 10px; margin-top: clamp(24px, 4vh, 40px); }
.arrow-btn { width: 52px; height: 40px; border: 0; border-radius: 6px; background: var(--purple); color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .25s ease, opacity .25s ease, transform .3s var(--ease); }
.arrow-btn:hover:not(:disabled) { background: var(--purple-2); transform: translateY(-2px); }
.arrow-btn:disabled { opacity: .35; cursor: default; }
/* "there's more": counter between the arrows, count on each group tab, soft fade where cards continue */
.arrows { align-items: center; }
.carousel-count { min-width: 9ch; text-align: center; font-size: .92rem; font-weight: 500; color: var(--purple); font-variant-numeric: tabular-nums; }
.carousel-count:empty { display: none; }
.group-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px;
  border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--lilac); color: var(--purple); }
.group.on .group-count { background: #fff; }
.carousel .track { --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.carousel.more-right .track { --fr: 72px; }

/* ============================ 05 SCALE ============================ */
.scale-grid { display: grid; gap: 40px; align-items: center; }
.scale h2 { margin: 26px 0 clamp(32px, 6vh, 64px); }
.big-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.scale-media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.scale-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ============================ 05 SUSTAINABILITY — forest film ============================ */
.impact { --g-ink: #fff; --g-ink-2: rgba(255,255,255,.82); --g-acc: var(--purple-mid); --g-base: rgba(255,255,255,.45);
  background: var(--purple-dk); color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
/* the still is animated like slow aerial footage: drifting pan + gentle zoom */
.impact-film { position: absolute; inset: -6%; z-index: 0; overflow: hidden; }
.impact-film img { width: 100%; height: 100%; object-fit: cover; animation: flyover 38s ease-in-out infinite alternate; will-change: transform; }
@keyframes flyover {
  0%   { transform: scale(1.08) translate3d(-2%, 1.5%, 0) rotate(-.6deg); }
  50%  { transform: scale(1.16) translate3d(1.5%, -1%, 0) rotate(.3deg); }
  100% { transform: scale(1.1) translate3d(3%, -2.5%, 0) rotate(.8deg); }
}
.impact-shade { position: absolute; inset: 0; z-index: 0; background:
  linear-gradient(90deg, rgba(8,30,20,.88) 0%, rgba(8,30,20,.62) 42%, rgba(8,30,20,.25) 75%, rgba(8,30,20,.35) 100%),
  linear-gradient(0deg, rgba(8,30,20,.7), transparent 40%); }
.impact .wrap { position: relative; z-index: 1; }
.impact-grid { display: grid; gap: 40px; align-items: center; }
.pill-green { background: var(--purple-mid); color: var(--ink); }
.impact-head { margin-top: 22px; color: #fff; }
.impact-main .pill + .pill { margin-left: 6px; }   /* "Case Study ChoViva" label beside the section pill */
.impact-num { font-weight: 500; letter-spacing: -.05em; line-height: .9; font-size: clamp(4.2rem, 11vw, 10rem); margin-top: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; color: #fff; }
.impact-num small { font-size: .5em; letter-spacing: -.02em; }
.impact-sub { font-size: clamp(1rem, 1.3vw, 1.25rem); font-weight: 500; margin-top: 12px; color: #fff; max-width: 44ch; }
.impact-sub sup, .sources sup { font-size: .65em; }
.src-ref { color: var(--purple-mid); text-decoration: none; margin-left: 2px; }
.src-ref:hover { text-decoration: underline; }
.impact-pure { margin-top: 16px; font-size: .95rem; color: var(--gold); font-weight: 500; }
/* comparison bars: thin, rounded data-end, values in text colour */
.co2 { margin: 28px 0 0; max-width: 580px; display: grid; gap: 12px; }
.co2 figcaption { font-size: .82rem; color: var(--g-ink-2); margin-bottom: 2px; }
.co2-row { display: grid; grid-template-columns: 230px 1fr 52px; align-items: center; gap: 14px; font-size: .95rem; color: #fff; }
.co2-row b { font-weight: 600; }
.co2-track { position: relative; height: 14px; }
.co2-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 0 4px 4px 0; transition: width 1.6s var(--ease) .3s; }
.co2-bar.base { background: var(--g-base); }
.co2-bar.ours { background: var(--purple-mid); }
.reveal.in .co2-bar { width: var(--w); }
.co2-val { text-align: right; font-variant-numeric: tabular-nums; }
.impact-side { display: grid; gap: 14px; }
.impact-card { padding: 24px 26px; border-radius: var(--r); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px) saturate(1.2); transition: background .35s ease, transform .5s var(--ease); }
.impact-card:hover { background: rgba(255,255,255,.18); transform: translateY(-4px); }
.ic-no { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 600; font-size: .85rem; }
.impact-card:nth-child(2) .ic-no { background: var(--purple-mid); }
.impact-card h3 { margin-top: 14px; color: #fff; }
.impact-card p { color: var(--g-ink-2); margin-top: 6px; }
.impact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 10px; }
.btn-mint { background: var(--purple-mid); color: var(--ink); }
.btn-mint:hover { background: var(--gold); }
.impact .btn-text:hover span { transform: translate(3px, -3px); }
/* sources: collapsed by default, full wording on demand */
.sources { margin-top: clamp(28px, 5vh, 56px); border-top: 1px solid rgba(255,255,255,.2); color: var(--g-ink-2); font-size: .88rem; }
.sources summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 0 4px; color: #fff; font-weight: 500; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.14); transition: transform .35s var(--ease); }
.sources[open] summary::before { transform: rotate(45deg); }
.src-hint { color: var(--g-ink-2); font-weight: 400; }
.sources-body { display: grid; gap: 8px; max-width: 92ch; padding: 10px 0 4px 38px; }
.sources-body a { color: var(--purple-mid); }
.sources-body a:hover { color: var(--gold); }

/* ============================ 07 COMPANY ============================ */
.company .tile { aspect-ratio: 3 / 4; }
.company .badge { min-width: 34px; width: 34px; height: 34px; padding: 0; transition: transform .4s var(--ease); }
.company .tile:hover .badge { transform: rotate(45deg); }

/* ============================ 08 FOOTER ============================ */
.footer { position: relative; overflow-x: clip; overflow-y: visible; background: var(--grey); color: var(--ink); padding: clamp(64px, 10vh, 120px) 0 36px; }
/* the footer "A" is shown whole: its top rises past the footer edge onto the section above */
.footer-a { position: absolute; z-index: 0; right: -4vw; bottom: 0; height: calc(100% + 56px); width: auto; max-width: 70vw; aspect-ratio: 57 / 60; pointer-events: none; }   /* rises 56px into the gap above, never under the cards */
.footer-in { position: relative; display: grid; gap: 64px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 760px; }
.footer h2 { margin: 0 0 14px; line-height: 1.4; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.footer-links a { display: block; padding: 4px 0; color: var(--ink-2); transition: color .25s ease; }
.footer-links a:hover { color: var(--purple); }
.footer-base { display: grid; gap: 22px; color: var(--purple); }
.footer-base .logo { width: 56px; height: auto; aspect-ratio: 57 / 95; }
.footer-claim { font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.footer-legal { font-size: .82rem; color: var(--muted); }
.footer-legal a:hover { color: var(--purple); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--purple), var(--purple-mid) 70%, var(--gold)); z-index: 200; }

/* ============================ PORTFOLIO GROUPS ============================ */
.groups { display: inline-flex; gap: 6px; padding: 5px; margin-top: 30px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(46,17,147,.14); }
.group { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--purple); cursor: pointer; transition: background .3s ease, color .3s ease; }
.group:hover { background: var(--lilac); }
.group.on { background: var(--purple); color: #fff; }
span.group { cursor: default; }   /* single group: a label, not a tab */
.group-note { margin: 16px auto 0; max-width: 52ch; color: var(--ink-2); }
.portfolio .group-note { margin-top: 24px; max-width: 52ch; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.4; color: var(--ink); }   /* "Crops under pressure" subline, a step up from body copy */
.portfolio .group-note span { display: block; margin-top: 8px; color: var(--purple); font-weight: 500; }
.slide[hidden] { display: none; }
/* colour alternatives: a swatch tile in natural colour bands until a photo exists */

/* ============================ BENEFITS ============================ */
.benefits { background: var(--grey); }
.benefit-grid { display: grid; gap: 20px; }
.benefit { position: relative; padding: 30px 30px 32px; border-radius: var(--r); background: #fff; box-shadow: 0 1px 0 rgba(14,11,26,.04); transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .35s ease, color .35s ease; }
.benefit:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(46,17,147,.45); }
.b-no { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--lilac); color: var(--purple); font-weight: 600; font-size: .95rem; }
.benefit h3 { margin: 22px 0 12px; }
.benefit p { color: var(--ink-2); max-width: 34ch; }
.benefit.big { background: var(--purple); color: #fff; }
.benefit.big .b-no { background: #fff; }
.b-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.b-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.2); }
.b-list b { font-weight: 500; font-size: 1.15rem; }
.b-list span { color: rgba(255,255,255,.8); font-size: .98rem; }

/* ============================ TABLET ============================ */
@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles.four { grid-template-columns: repeat(2, 1fr); }
  .tiles.layers { grid-template-columns: repeat(2, 1fr); }
  .benefit .b-list { grid-template-columns: 1fr 1fr; column-gap: 28px; }   /* full-width cards: paired points side by side */
  .benefit .b-list li { padding-bottom: 0; }
  .track { grid-auto-columns: calc((100% - 40px) / 2.3); }   /* next card peeks in */
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

/* ============================ DESKTOP 16:9 ============================ */
@media (min-width: 1000px) {
  .screen { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: clamp(100px, 13vh, 140px) 0 clamp(64px, 9vh, 100px); }
  .why-grid { grid-template-columns: 1fr 1.45fr; grid-template-rows: auto 1fr; column-gap: clamp(40px, 6vw, 120px); row-gap: 4vh; align-items: start; }
  .why-head { grid-column: 1; grid-row: 1; }
  .drivers { grid-column: 1; grid-row: 2; align-self: end; }
  .why-media { grid-column: 2; grid-row: 1 / 3; aspect-ratio: auto; height: min(68vh, 44vw); }
  .tiles.layers { grid-template-columns: repeat(4, 1fr); }
  .tiles.layers .tile { aspect-ratio: auto; height: min(38vh, 20vw); }
  .tiles.layers .tile h3 { font-size: min(1.6vw, 2.9vh); right: 70px; }
  .tech-foot { grid-template-columns: auto auto auto 1fr minmax(320px, 30%); }
  .tech-foot .btn-block { grid-column: 5; }
  .track { grid-auto-columns: calc((100% - 60px) / 3.3); }   /* 4th card peeks in: there is more */
  .slide .tile { aspect-ratio: auto; height: min(36vh, 20vw); }
  .portfolio .center-head { margin-bottom: 4vh; }
  .portfolio .center-head h2 { margin-top: 3vh; }
  .groups { margin-top: 3.4vh; }
  .scale-grid { grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 120px); }
  .scale-media { aspect-ratio: auto; height: min(66vh, 40vw); }
  .impact-grid { grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 120px); }
  .tiles.four { grid-template-columns: repeat(4, 1fr); }
  /* two rows, no empty corners: featured card + Sustainability on top, the two paired cards below; paired points side by side */
  .benefit-grid { grid-template-columns: repeat(6, 1fr); }
  .benefit.big { grid-column: span 4; }
  .benefit-grid .benefit:nth-child(2) { grid-column: span 2; }
  .benefit-grid .benefit:nth-child(3), .benefit-grid .benefit:nth-child(4) { grid-column: span 3; }
  .company .tile { aspect-ratio: auto; height: min(56vh, 30vw); }
  .footer-in { grid-template-columns: 1fr 1.2fr; align-items: end; min-height: min(70vh, 640px); }
  .footer-base { grid-row: 1; align-self: end; }
  .footer-links { grid-column: 2; align-self: start; }
  .fact b { font-size: min(4.4vw, 8vh); }
}

/* ============================ MOBILE NAV ============================ */
@media (max-width: 999px) {
  .nav { height: 80px; }
  .brand .logo { width: 34px; }
  .nav-toggle { display: inline-flex; }
  .nav-pill {
    position: absolute; top: calc(100% + 6px); left: var(--gutter); right: var(--gutter);   /* absolute to the fixed bar: fixed put it below the screen until the bar blurred */ margin: 0; background: #fff; box-shadow: 0 18px 40px -20px rgba(14,11,26,.45);
    flex-direction: column; align-items: stretch; padding: 10px;
    opacity: 0; pointer-events: none; transform: translateY(-8px); visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;   /* hidden: closed links are out of the Tab order */
  }
  .nav.scrolled .nav-pill { background: #fff; box-shadow: 0 18px 40px -20px rgba(14,11,26,.45); }
  .nav.open .nav-pill { opacity: 1; pointer-events: auto; transform: none; visibility: visible; transition: opacity .3s ease, transform .3s ease, visibility 0s; }
  .nav-pill a { font-size: 1.05rem; padding: 12px; }
  .reel-index { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-wrap: wrap; gap: 18px 28px; }
}
@media (max-width: 560px) {
  .co2-row { grid-template-columns: 1fr 46px; row-gap: 6px; }
  .co2-label { grid-column: 1 / -1; }
  .tech-foot { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reel.on, .reel.on video, .reel.on img, .reel.was video, .reel.was img, .drift img, .impact-film img { animation: none; }
  .co2-bar { transition: none; width: var(--w); }
  .reel-index li.on .reel-go::before { animation: none; transform: none; }
  .scroll-progress { display: none; }
}

/* ============================ BRAND COLOUR ELEMENTS ============================
   Purple carries, light green + sky accent. The "A" mark (ring + arc of the
   logo) recurs as a quiet graphic element; small colour codes repeat 1-2-3. */
.screen, .wwd, .footer { position: relative; }
.deco-a { position: absolute; pointer-events: none; z-index: 0; width: 40vw; aspect-ratio: 57 / 60; height: auto; }
.wrap { position: relative; z-index: 1; }
.d-portfolio { color: var(--lilac-2); opacity: .8; width: min(42vw, 680px); right: -12vw; top: -16%; transform: rotate(14deg); }
.d-benefit { color: #fff; opacity: .07; width: min(72%, 420px); right: -6%; bottom: -38%; transform: rotate(-12deg); transition: transform 1.2s var(--ease); }
.benefit.big:hover .d-benefit { transform: rotate(-4deg) scale(1.04); }

/* colour codes: 01 green · 02 sky · 03 white/lilac · 04 green */
.fact b { position: relative; }
.numbers .fact, .big-facts .fact, .tech-foot .fact { padding-top: 18px; position: relative; }
.numbers .fact::before, .big-facts .fact::before, .tech-foot .fact::before { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 6px; border-radius: 999px; background: var(--purple-mid); transform-origin: left; transition: width .6s var(--ease); }
.numbers .fact:nth-child(2)::before, .big-facts .fact:nth-child(2)::before, .tech-foot .fact:nth-child(2)::before { background: var(--gold); }
.numbers .fact:nth-child(3)::before, .big-facts .fact:nth-child(3)::before, .tech-foot .fact:nth-child(3)::before { background: var(--purple); }
.numbers .fact:hover::before, .big-facts .fact:hover::before, .tech-foot .fact:hover::before { width: 64px; }

.layers .tile:nth-child(1) .badge, .company .tile:nth-child(1) .badge { background: var(--purple-mid); color: var(--ink); }
.layers .tile:nth-child(2) .badge, .company .tile:nth-child(2) .badge { background: var(--gold); color: var(--ink); }
.layers .tile:nth-child(3) .badge, .company .tile:nth-child(3) .badge { background: #fff; color: var(--purple); }
.layers .tile:nth-child(4) .badge, .company .tile:nth-child(4) .badge { background: var(--purple-mid); color: var(--ink); }
/* a colour line grows along each technology layer on hover */
.layers .tile::before { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 0; z-index: 2; transition: width .7s var(--ease); background: var(--purple-mid); }
.layers .tile:nth-child(2)::before { background: var(--gold); }
.layers .tile:nth-child(3)::before { background: #fff; }
.layers .tile:hover::before { width: 100%; }

/* Why now: light-green numbering + active marker */
.why .driver .no { color: var(--purple-mid); }
.driver { position: relative; }
.driver::before { content: ""; position: absolute; left: -18px; top: 20px; bottom: 20px; width: 4px; border-radius: 4px; background: var(--purple-mid); transform: scaleY(0); transition: transform .5s var(--ease); }
.driver.on::before { transform: scaleY(1); }
.pill-light { background: var(--gold); color: var(--purple); }

/* Portfolio on a sky wash */
.portfolio { background: linear-gradient(180deg, var(--grey) 0%, var(--lilac) 100%); overflow: hidden; }
.groups { box-shadow: inset 0 0 0 1px rgba(50,15,153,.16); }
.group.on { background: var(--purple); }
.slide .tile { box-shadow: 0 0 0 0 var(--gold); transition: box-shadow .5s var(--ease); }
.slide:hover .tile { box-shadow: 0 0 0 4px var(--gold); }

/* Benefits: each card picks up its colour on hover */
.benefits { overflow: hidden; }
.benefit-grid .benefit:nth-child(2) .b-no { background: var(--purple-mid); color: var(--ink); }
.benefit-grid .benefit:nth-child(3) .b-no { background: var(--gold); color: var(--ink); }
.benefit-grid .benefit:nth-child(4) .b-no { background: var(--lilac); color: var(--ink); }
.benefit-grid .benefit:nth-child(2):hover { background: var(--lilac); }
.benefit-grid .benefit:nth-child(3):hover { background: var(--gold-lt); }
.benefit-grid .benefit:nth-child(4):hover { background: var(--lilac); }
.benefit.big { overflow: hidden; }
.benefit.big > :not(.deco-a) { position: relative; z-index: 1; }
.b-list li { border-top-color: rgba(238,182,80,.35); }
.b-list b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--purple-mid); margin-right: 10px; vertical-align: middle; }
.b-list li:nth-child(2) b::before { background: var(--gold); }
.b-list li:nth-child(3) b::before { background: #fff; }
/* the paired benefits inside the white cards */
.benefit:not(.big) .b-list li { border-top-color: rgba(14,11,26,.1); padding: 12px 0; }
.benefit:not(.big) .b-list li:last-child { padding-bottom: 0; }
.benefit:not(.big) .b-list b { font-size: 1.05rem; color: var(--ink); }
.benefit:not(.big) .b-list span { color: var(--ink-2); }
.benefit.big .b-list li { padding: 20px 0; }
.benefit.big .b-list b { font-size: 1.3rem; }
.benefit.big .b-list span { font-size: 1.05rem; max-width: 36ch; }
.benefit-grid .benefit:nth-child(2) { display: flex; flex-direction: column; align-items: flex-start; }
.b-list li { align-content: start; }
.b-more { margin-top: auto; padding-top: 18px; display: inline-flex; gap: 8px; font-weight: 500; color: var(--purple); }
.b-more span { transition: transform .35s var(--ease); }
.b-more:hover span { transform: translateY(-3px); }

/* Scale: image sits on an offset gold block */
.scale { overflow: hidden; }
.scale-media { overflow: visible; }
.scale-media img { border-radius: var(--r); }
.scale-media::before { content: ""; position: absolute; inset: 0; transform: translate(-18px, 18px); border-radius: var(--r); background: var(--gold); z-index: -1; }
.scale-media { isolation: isolate; }

/* Hero ticker + nav hover in brand accents */
.reel-index li.on .reel-go::before { background: var(--purple-mid); }
.nav-pill a:hover, .lang:hover { background: var(--lilac); color: var(--purple); }

/* Footer "A" in sky → light green */
.footer-a { opacity: .9; }

@media (max-width: 999px) { .driver::before { left: -10px; } .scale-media::before { transform: translate(-10px, 10px); } }

/* skip link: first tab stop on every page, visible only when focused */
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 300; padding: 10px 16px; border-radius: 6px; background: var(--purple); color: #fff; font-weight: 500; transition: top .2s ease; }
.skip-link:focus { top: 16px; }

/* ============================ TECHNOLOGY: four layers as a calm, technical stack ============================
   one colour family only (brand purple + its light tints); line pictograms on a faint grid instead of photos */
.tech-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.tech-intro { position: sticky; top: 120px; }
.tech-intro h2 { margin-top: 24px; max-width: 12ch; text-wrap: balance; }
.tech-intro .lead { max-width: 36ch; text-wrap: pretty; }
.tech-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tech-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 176px); align-items: center; gap: 24px;
  padding: clamp(16px, 1.6vw, 24px) clamp(22px, 2.6vw, 40px); border-radius: 12px; background: #F6F5FA;
  box-shadow: inset 0 0 0 1px rgba(50,15,153,.05); transition: background .35s ease, box-shadow .35s ease; }
.tech-step:nth-child(even) { background: #EFECF8; }
.tech-step:hover { background: #ECE8F8; box-shadow: inset 0 0 0 1px rgba(50,15,153,.14); }
.tech-step-k { display: flex; gap: 10px; margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tech-step-k span { color: var(--purple); font-variant-numeric: tabular-nums; }
.tech-step h3 { margin: 0 0 6px; color: var(--purple); font-size: clamp(1.3rem, 1.9vw, 1.8rem); font-weight: 600; letter-spacing: -.015em; }
.tech-step-copy > p:last-child { margin: 0; max-width: 32ch; color: var(--ink-2); font-size: clamp(.98rem, 1.1vw, 1.08rem); line-height: 1.5; text-wrap: pretty; }
/* pictograms */
.tech-picto { width: 100%; height: auto; display: block; overflow: visible; }
.tech-picto .tp-grid path { fill: none; stroke: rgba(50,15,153,.06); stroke-width: 1; }
.tech-picto .tp-thin, .tech-picto .tp-route { fill: none; stroke: #B7ACE3; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.tech-picto .tp-route { stroke-dasharray: 4 5; stroke: #9C8DD9; }
.tech-picto .tp-line { fill: none; stroke: #6A55C4; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tech-picto .tp-fill-w, .tech-picto .tp-fill-1, .tech-picto .tp-fill-2 { stroke: #6A55C4; stroke-width: 1.4; stroke-linejoin: round; }
.tech-picto .tp-fill-w { fill: #fff; }
.tech-picto .tp-fill-1 { fill: #D9D2F4; }
.tech-picto .tp-fill-2 { fill: #A796E2; }
.tech-picto .tp-dot { fill: #fff; stroke: #9C8DD9; stroke-width: 1.2; }
.tech-picto .tp-dot.tp-on { fill: var(--purple); stroke: none; }
.tech-step:hover .tp-route { animation: tpFlow 1.6s linear infinite; }
@keyframes tpFlow { to { stroke-dashoffset: -18; } }
/* facts below in the same single colour */
.tech .tech-foot .fact::before { background: var(--purple); }
@media (max-width: 999px) {
  .tech-grid { grid-template-columns: 1fr; }
  .tech-intro { position: static; }
  .tech-intro h2 { max-width: none; }
}
@media (max-width: 560px) {
  .tech-step { grid-template-columns: 1fr; gap: 14px; }
  .tech-picto { max-width: 220px; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .tech-step, .tech-step:hover .tp-route { transition: none; animation: none; } }


/* hero: "fragile commodities." stays together on one line where it fits */
@media (min-width: 700px) {
  .hero h1 { max-width: 17ch; }
  .hero h1 .nw { white-space: nowrap; }
}

/* Benefits: no numbers (all equally important); clear card edges on a slightly deeper ground; one calm colour */
.benefits { background: #F1EFF7; }
.benefit-grid .benefit:not(.big) { background: #fff; box-shadow: 0 0 0 1px rgba(50,15,153,.10), 0 10px 28px -22px rgba(50,15,153,.35); }
.benefit-grid .benefit:not(.big):hover { background: #fff; box-shadow: 0 0 0 1px rgba(50,15,153,.22), 0 24px 46px -28px rgba(50,15,153,.45); }
.benefit h3 { margin-top: 0; }
.benefit.big h3 { margin-top: 0; }
.benefit:not(.big) .b-list b::before, .benefit:not(.big) .b-list li:nth-child(2) b::before { background: var(--purple); }
.benefit.big .b-list b::before, .benefit.big .b-list li:nth-child(2) b::before { background: #fff; }
.benefit.big .b-list li { border-top-color: rgba(255,255,255,.22); }
.sec-head h2 { text-wrap: balance; }

/* small colour hints, one per card: a short bar at the top, matching bullet dots, and a tinted outline on hover */
.benefit-grid .benefit:nth-child(2) { --acc: var(--purple-mid); --acc-rgb: 156,141,217; }
.benefit-grid .benefit:nth-child(3) { --acc: var(--gold); --acc-rgb: 238,182,80; }
.benefit-grid .benefit:nth-child(4) { --acc: var(--purple); --acc-rgb: 50,15,153; }
.benefit-grid .benefit:not(.big)::before { content: ""; position: absolute; left: 30px; top: 0; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--acc);
  transition: width .5s var(--ease); }
.benefit-grid .benefit:not(.big):hover::before { width: 88px; }
.benefit-grid .benefit:not(.big) .b-list b::before, .benefit-grid .benefit:not(.big) .b-list li:nth-child(2) b::before { background: var(--acc); }
.benefit-grid .benefit:not(.big):hover { box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .55), 0 24px 46px -28px rgba(50,15,153,.4); }
.benefit-grid .benefit:not(.big) .b-more { color: var(--purple); }
.benefit.big .b-list li:nth-child(1) b::before { background: var(--purple-mid); }
.benefit.big .b-list li:nth-child(2) b::before { background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .benefit-grid .benefit:not(.big)::before { transition: none; } }

/* ============ BENEFITS: six equal cards ============ */
/* phones one column · tablets two · desktop a calm brick pattern: wide · normal · normal, then mirrored (same height, widths differ only slightly) */
.bx-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.bx { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 28px 30px; border-radius: var(--r); background: #fff;
  box-shadow: 0 0 0 1px rgba(50,15,153,.10), 0 10px 28px -22px rgba(50,15,153,.35); transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity 1s var(--ease); }
.bx.reveal.in:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(50,15,153,.22), 0 26px 50px -30px rgba(50,15,153,.45); }
.bx h3 { margin: 8px 0 0; font-size: clamp(1.2rem, 1.45vw, 1.4rem); line-height: 1.2; }
.bx p { margin: 0; color: var(--ink-2); line-height: 1.55; max-width: 44ch; text-wrap: pretty; }
.bx-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lilac); color: var(--purple); }
.bx-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bx .b-more { margin-top: auto; }
@media (min-width: 700px) { .bx-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; } }   /* every box the same height */
@media (min-width: 1000px) { .benefits .sec-head .lead { max-width: none; white-space: nowrap; } }   /* the subline on one line */
@media (min-width: 1000px) {
  .bx-grid { grid-template-columns: repeat(10, 1fr); gap: 20px; }
  .bx { grid-column: span 3; }
  .bx:nth-child(1), .bx:nth-child(6) { grid-column: span 4; }
}
/* colour: the two wide cards carry the brand colours (purple, soft purple), the four white ones have purple icon
   circles; a colour line grows along the bottom on hover */
.bx { position: relative; overflow: hidden; }
.bx::before { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--purple); transition: width .7s var(--ease); }
.bx:hover::before { width: 100%; }
.bx:nth-child(1) { background: var(--purple); color: #fff; box-shadow: 0 18px 40px -26px rgba(50,15,153,.7); }
.bx:nth-child(1) p { color: rgba(255,255,255,.84); }
.bx:nth-child(1) .bx-ico { background: var(--gold); color: var(--purple); }
.bx:nth-child(1)::before { background: var(--gold); }
.bx:nth-child(6) { background: var(--purple-mid); color: var(--ink); box-shadow: 0 18px 40px -26px rgba(50,15,153,.55); }
.bx:nth-child(6) p { color: var(--ink); }
.bx:nth-child(6) .bx-ico { background: #fff; color: var(--purple); }
.bx:nth-child(n+2):nth-child(-n+5) .bx-ico { background: var(--purple); color: #fff; }
.bx-ico { transition: transform .5s var(--ease); }
.bx:hover .bx-ico { transform: scale(1.08) rotate(-6deg); }
@media (prefers-reduced-motion: reduce) { .bx { transition: none; } .bx::before, .bx-ico { transition: none; } }


/* ======================= HOMEPAGE BUNDLE (Oct 2026) ======================= */
/* palette: white · purple shades · gold only as a small accent */

/* ---- 02 · What we do: a compact strip, the upright gold A behind it ---- */
.wwd { overflow: hidden; padding: clamp(48px, 7vw, 92px) 0; background: #fff; }
.d-wwd { color: var(--gold); opacity: .22; width: clamp(260px, 30vw, 460px); right: clamp(-120px, -4vw, -40px); top: 50%; transform: translateY(-50%); }
.wwd-in { position: relative; z-index: 1; display: grid; gap: 18px 64px; align-items: end; }
.wwd-head h2 { margin-top: 18px; font-size: clamp(1.8rem, 3.4vw, 3rem); max-width: 18ch; text-wrap: balance; }
.wwd-copy p { margin: 0; max-width: 52ch; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.wwd-copy .wwd-sub { margin-top: 12px; font-size: .98rem; color: var(--purple); font-weight: 500; }
@media (min-width: 1000px) { .wwd-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 699px) { .d-wwd { opacity: .16; width: 230px; right: -90px; } }

/* ---- 05b · Scale figures as true circles ---- */
.figures { padding: clamp(56px, 7vw, 100px) 0;   /* deep purple band with soft glows; the circles are fine glass rings on it */
  background:
    radial-gradient(55% 90% at 88% 0%, rgba(220,214,243,.18) 0%, rgba(220,214,243,0) 60%),
    radial-gradient(45% 80% at 6% 100%, rgba(156,141,217,.22) 0%, rgba(156,141,217,0) 60%),
    linear-gradient(160deg, var(--purple) 0%, var(--purple-dk) 100%); }
.fig-row { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 4vw, 40px); max-width: 1180px; }
.fig { container-type: inline-size; position: relative; aspect-ratio: 1 / 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 12%; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); color: #fff; transition: box-shadow .5s var(--ease), background .5s ease; }
.fig::after { content: ""; position: absolute; top: 9%; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--gold); }   /* the one tiny gold accent */
.fig:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px var(--gold); }   /* gold ring on hover */
.fig b { display: block; font-weight: 500; letter-spacing: -.03em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: clamp(1.4rem, 17cqi, 4rem); }
.fig span { display: block; margin-top: 8%; font-size: clamp(.78rem, 7.4cqi, 1.05rem); line-height: 1.3; color: rgba(255,255,255,.78); max-width: 15ch; text-wrap: balance; }
@media (min-width: 1000px) { .fig-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- 03 · Why now: gold accents, landscape images with a fact overlay ---- */
.why .driver .no { color: var(--gold); }
.driver::before { background: var(--gold); }
.why-media { aspect-ratio: 3 / 2; height: auto; }
.why-shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.why-shot.on { opacity: 1; }
.why-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transform: scale(1.06); transition: transform 6s var(--ease); }
.why-shot.on img { transform: scale(1); }
.why-fact { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(40px, 8%, 90px) clamp(16px, 4%, 32px) clamp(14px, 3.4%, 26px);
  background: linear-gradient(to top, rgba(14,11,26,.9) 0%, rgba(14,11,26,.74) 62%, rgba(14,11,26,0) 100%);   /* ≥ 4.5:1 for the white text even on a bright patch */ color: #fff; display: grid; gap: 6px; }
.why-fact span { font-size: clamp(.92rem, 1.25vw, 1.15rem); font-weight: 500; line-height: 1.4; max-width: 46ch; text-wrap: pretty; }
.why-fact small { font-size: clamp(.7rem, .8vw, .8rem); color: rgba(255,255,255,.78); max-width: 60ch; }
.why-fact small::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 8px; vertical-align: middle; background: var(--gold); }
@media (min-width: 1000px) { .why-media { height: auto; aspect-ratio: 3 / 2; align-self: center; } }

/* Volatility: a static cocoa price chart over the photo (markup + data: index.html, scripts/cocoa-chart.js).
   Layers: photo · dark purple overlay (55%, deeper behind the chart so the labels pass AA over the bright window)
   · chart from 29% to ~73%, sitting right on top of the callout · the usual dark band with callout and source at the bottom */
.why-media { container-type: inline-size; }
.why-shot-chart::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(31,8,102,.74) 0%, rgba(31,8,102,.72) 78%); }
.why-shot-chart .why-fact { z-index: 2; }
.why-chart { position: absolute; z-index: 2; top: 29%; left: 4.5%; right: 4.5%; height: 44%; color: #fff; }
.wc-unit { position: absolute; top: 0; left: 0; font-size: 12px; line-height: 1; color: var(--lilac-2); }
.wc-plot { position: absolute; inset: 0 0 22px 0; }
.wc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wc-area { fill: var(--gold); fill-opacity: .14; }
.wc-line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wc-base { stroke: rgba(255,255,255,.25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wc-year { position: absolute; top: calc(100% + 7px); transform: translateX(-50%); font-size: 11px; line-height: 1; color: var(--lilac-2); }
.wc-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--purple-dk); }
.wc-ann { position: absolute; display: grid; gap: 2px; white-space: nowrap; line-height: 1.15; }
.wc-ann b { font-size: 13px; font-weight: 500; color: #fff; }
.wc-ann small { font-size: 11px; color: var(--lilac-2); }
.wc-ann-right { transform: translate(14px, -50%); }
.wc-ann-below { transform: translate(-50%, 11px); text-align: center; }
.wc-ann-above { right: 0; margin-bottom: 11px; text-align: right; }
/* narrow card: prices only, smaller callout so it stays clear of the chart */
@container (max-width: 479px) {
  .wc-ann small { display: none; }
  .why-chart { top: 20%; height: 43%; }
  .wc-unit { font-size: 11px; }
  .why-shot-chart .why-fact span { font-size: .8rem; }
}
@media (max-width: 520px) { .why-media { aspect-ratio: 4 / 3; } .why-fact { padding: 34px 14px 12px; gap: 4px; } .why-fact span { font-size: .82rem; line-height: 1.35; } .why-fact small { font-size: .66rem; } }

/* ---- 04 · Sustainability: the content on one light card over the (unchanged) forest image ---- */
.impact-shade { background: linear-gradient(180deg, var(--purple) 0%, rgba(50,15,153,.35) 16%, rgba(50,15,153,0) 34%), linear-gradient(0deg, rgba(14,11,26,.28), rgba(14,11,26,0) 45%); }
.impact-card-wrap { position: relative; padding: clamp(24px, 4vw, 56px); border-radius: 18px; background: rgba(255,255,255,.88); color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); box-shadow: 0 40px 80px -50px rgba(14,11,26,.6); }
.impact .impact-head, .impact .impact-num, .impact .impact-sub, .impact .co2-row, .impact .impact-card h3, .impact .sources summary { color: var(--ink); }
.impact { --g-ink-2: var(--ink-2); --g-base: rgba(50,15,153,.18); }
.impact .co2-bar.ours { background: var(--purple); }
.impact .co2-row { grid-template-columns: 230px 1fr auto; }
.co2-val small { font-size: .78em; color: var(--ink-2); font-weight: 400; white-space: nowrap; }
.impact .impact-pure { color: var(--purple); }
.impact .impact-card { background: var(--lilac); border-color: rgba(50,15,153,.10); -webkit-backdrop-filter: none; backdrop-filter: none; }
.impact .impact-card:hover { background: #E7E2F8; }
.impact .impact-card p { color: var(--ink-2); }
.impact .ic-no, .impact .impact-card:nth-child(2) .ic-no { background: #fff; color: var(--purple); box-shadow: inset 0 0 0 1px rgba(50,15,153,.18); }
.impact .btn-text { color: var(--purple); }
.impact .src-ref, .impact .sources-body a { color: var(--purple); }
.impact .sources { border-top-color: rgba(50,15,153,.14); }
.impact .sources summary::before { background: var(--lilac); color: var(--purple); }
@media (max-width: 699px) { .impact .co2-row { grid-template-columns: 1fr auto; } }

/* ---- 05 · Technology: the patent row as a slim full-width purple band ---- */
.tech-band { margin-top: clamp(40px, 6vh, 72px); background: var(--purple); color: #fff; }
.tech-band .tech-foot { margin-top: 0; padding-block: clamp(22px, 3vw, 34px); align-items: center; }
.tech-band .fact b { color: #fff; font-size: clamp(1.6rem, 3vw, 2.8rem); }
.tech-band .fact span { color: rgba(255,255,255,.82); }
.tech .tech-band .fact::before { background: var(--gold); }
.tech { padding-bottom: 0 !important; }
@media (min-width: 1000px) { .tech-band .tech-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .tech-band .tech-foot { grid-template-columns: 1fr 1fr; } .tech-band .fact:last-child { grid-column: 1 / -1; } }
.tech { flex-direction: column; align-items: stretch; justify-content: center; }
.tech > .wrap { width: 100%; }

/* Sustainability on a white ground: the forest image sits in a rounded box (like the case-study block) */
.impact { background: #fff; padding-block: clamp(48px, 7vw, 96px); min-height: 0; }
.impact-box { position: relative; overflow: hidden; isolation: isolate; border-radius: 18px; padding: clamp(16px, 3vw, 40px); background: var(--purple-dk); }
.impact-box .impact-film { inset: -6%; }
.impact-box .impact-shade { background: linear-gradient(0deg, rgba(14,11,26,.22), rgba(14,11,26,0) 50%); }
.impact-box .impact-card-wrap { position: relative; z-index: 1; }
/* no inner card: text and data sit directly on the forest, a dark shade keeps it legible */
.impact-box { padding: clamp(28px, 5vw, 72px); }
.impact-box .impact-shade { background: linear-gradient(90deg, rgba(14,11,26,.78) 0%, rgba(14,11,26,.6) 50%, rgba(14,11,26,.42) 100%), linear-gradient(0deg, rgba(14,11,26,.35), rgba(14,11,26,0) 50%); }
.impact-box .impact-card-wrap { padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; color: #fff; }
.impact-box .impact-head, .impact-box .impact-num, .impact-box .impact-sub, .impact-box .co2-row, .impact-box .impact-card h3, .impact-box .sources summary { color: #fff; }
.impact-box { --g-ink-2: rgba(255,255,255,.82); --g-base: rgba(255,255,255,.4); }
.impact-box .co2-bar.ours { background: var(--gold); }
.impact-box .co2-val small, .impact-box .impact-card p, .impact-box .sources { color: rgba(255,255,255,.8); }
.impact-box .impact-pure { color: var(--gold); }
.impact-box .impact-card { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.impact-box .impact-card:hover { background: rgba(255,255,255,.16); }
.impact-box .btn-text, .impact-box .src-ref, .impact-box .sources-body a { color: #fff; }
.impact-box .sources { border-top-color: rgba(255,255,255,.22); }
.impact-box .sources summary::before { background: rgba(255,255,255,.16); color: #fff; }
