/* NAVIMESO Applied Longevity: page layer. Tokens only; every hex lives in the BRAND block of tokens.css. */

:root { --ink-field: var(--brand-forest); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink-field: var(--brand-forest);
    --bg: color-mix(in srgb, var(--brand-forest) 38%, var(--brand-night));
    --surface-2: color-mix(in srgb, var(--brand-forest) 70%, var(--bg));
    --surface: color-mix(in srgb, var(--brand-forest) 55%, var(--brand-night));
    --accent-deep: var(--accent-on-dark);
    --accent-soft: color-mix(in srgb, var(--accent-bright) 20%, transparent);
    --accent-faint: color-mix(in srgb, var(--accent-bright) 9%, transparent);
  }
}
:root[data-theme="dark"] {
  --ink-field: var(--brand-forest);
  --bg: color-mix(in srgb, var(--brand-forest) 38%, var(--brand-night));
  --surface-2: color-mix(in srgb, var(--brand-forest) 70%, var(--bg));
  --surface: color-mix(in srgb, var(--brand-forest) 55%, var(--brand-night));
  --accent-deep: var(--accent-on-dark);
  --accent-soft: color-mix(in srgb, var(--accent-bright) 20%, transparent);
  --accent-faint: color-mix(in srgb, var(--accent-bright) 9%, transparent);
}

/* Logo: the official NAVIMESO wordmark PNG, coloured per ground */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 24px; width: auto; }
.logo .logo-on-dark { display: none; }
.site-header.on-ink:not(.is-scrolled) .logo-on-light { display: none; }
.site-header.on-ink:not(.is-scrolled) .logo-on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block; }
}
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
@media (max-width: 760px) { .logo img { height: 19px; } }

/* Hero: forest field, cell render on the right, wash from the left */
.hero-ink { --hero-filter: none; }
.hero-ink .hero-media img { filter: none; object-position: 70% 50%; }
.hero-ink .hero-wash {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand-forest) 94%, transparent) 0%, color-mix(in srgb, var(--brand-forest) 62%, transparent) 46%, transparent 78%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-forest) 40%, transparent), transparent 30%, color-mix(in srgb, var(--brand-forest) 70%, transparent));
}
.hero-ink .hero-content { max-width: none; }
.hero-ink .display { max-width: 11ch; }
.hero-ink .lead { max-width: 560px; }
.hero-ink .legal { color: var(--on-ink-muted); }
.hero-sig { display: block; margin-top: 18px; color: var(--accent-on-dark); font-size: var(--fs-lead); font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 760px) {
  .hero-ink .hero-media img { object-position: 78% 50%; }
  .hero-ink .hero-wash { background: linear-gradient(180deg, color-mix(in srgb, var(--brand-forest) 55%, transparent), color-mix(in srgb, var(--brand-forest) 92%, transparent) 62%); }
}

/* ── Bento: tiles of unequal size on a 12-column grid. Tiles are borderless colour
      fields (tint, sage, cream, forest, aubergine); pictures sit faint in the ground. ── */
:root { --fs-h2-tile: clamp(34px, 4vw, 58px); --tile-pad: clamp(22px, 2.6vw, 38px); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); grid-auto-flow: dense; gap: 14px; }
.bento-tall { grid-auto-rows: minmax(300px, auto); }
.bento-steps { grid-auto-rows: minmax(150px, auto); }

.tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: var(--tile-pad); border-radius: var(--radius); background: var(--tile-ground, var(--surface-2)); color: var(--ink); grid-column: span var(--span, 4); grid-row: span var(--rows, 1); }
.band { --tile-ground: var(--bg); }
.tile > * { position: relative; }
.tile p { color: var(--muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.tile .lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 520px; }
.tile .h2 { font-size: var(--fs-h2-tile); line-height: 1.02; }
.tile .h3 + p, .tile .tag + p { margin-top: -2px; }
.tile .tag { color: var(--accent-deep); font-size: 13px; font-weight: 700; }
.tile .eyebrow { margin-bottom: 16px; color: var(--accent-deep); font-size: var(--fs-micro); line-height: 1.55; }
.tile .small { font-size: 13px; }
.tile .statement { color: inherit; font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; max-width: 30ch; }
.tile-foot { margin-top: auto; padding-top: 18px; }
.tile-foot.button { align-self: flex-start; padding-top: 0; }
div.tile-foot { display: grid; gap: 14px; justify-items: start; }
.tile-lead { justify-content: space-between; gap: 28px; }
.tile-text { max-width: 54%; display: flex; flex-direction: column; gap: 14px; }

/* tile grounds */
.tile-sage { background: color-mix(in srgb, var(--accent-bright) 17%, var(--surface-2)); }
.band .tile-sage { background: color-mix(in srgb, var(--accent-bright) 20%, var(--bg)); }
.tile-cream { background: var(--brand-cream); color: var(--on-field); }
.tile-cream p, .tile-cream .label { color: color-mix(in srgb, var(--on-field) 74%, transparent); }
.tile.tile-cream .tag, .tile.tile-cream .eyebrow, .tile.tile-cream .num, .tile.tile-cream .text-link:hover { color: var(--brand-green); }
.tile-forest { background: var(--brand-forest); color: var(--on-ink); }
.tile-aubergine { background: var(--brand-aubergine); color: var(--on-ink); }
.tile-forest p, .tile-aubergine p, .tile-ghost p, .tile-forest .label, .tile-aubergine .label { color: var(--on-ink-muted); }
.tile-forest .tag, .tile-aubergine .tag, .tile-ghost .tag, .tile-forest .eyebrow, .tile-aubergine .eyebrow, .tile-ghost .eyebrow, .tile-clear .eyebrow { color: var(--accent-on-dark); }
.tile-forest .text-link:hover, .tile-aubergine .text-link:hover { color: var(--accent-on-dark); }
.tile-forest .statement, .tile-aubergine .statement { color: var(--on-ink); }
.tile-cream .statement { color: var(--on-field); }
.tile-ghost { background: color-mix(in srgb, var(--on-ink) 7%, var(--brand-forest)); color: var(--on-ink); }
.tile-clear { background: none; color: inherit; padding: 8px clamp(8px, 2vw, 28px) 8px 0; overflow: visible; justify-content: space-between; gap: 28px; }
.tile-clear::after { content: none; }
.tile-clear .lead { color: var(--on-ink-muted); }

/* pictures in the ground: faint, masked away from the text, slow drift, light parallax */
.tile-bg { position: absolute; inset: -16px; z-index: -2; pointer-events: none; translate: 0 var(--py, 0px); transition: scale 1400ms var(--ease-out); }
.tile-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); opacity: var(--bg-o, 0.62); animation: tile-drift 46s ease-in-out infinite alternate; animation-play-state: paused; }
.tile.is-inview .tile-bg img { animation-play-state: running; }
.bg-blend { mix-blend-mode: multiply; --bg-o: 0.92; }
.bg-overlay { mix-blend-mode: overlay; --bg-o: 0.9; }
.tile-aubergine .tile-bg { --bg-o: 0.95; }
.bg-flip img { rotate: 180deg; }
.bg-fade-left { -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / 0.28), black 78%); mask-image: linear-gradient(90deg, rgb(0 0 0 / 0.28), black 78%); }
.bg-fade-top { -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.22), black 80%); mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.22), black 80%); }
.bg-fade-mid { -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.5), black 30%, black 56%, rgb(0 0 0 / 0.07) 72%); mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.5), black 30%, black 56%, rgb(0 0 0 / 0.07) 72%); }
.bg-half-right { left: 46%; -webkit-mask-image: linear-gradient(90deg, transparent, black 34%); mask-image: linear-gradient(90deg, transparent, black 34%); }
@keyframes tile-drift { from { transform: scale(1.04) translate3d(-1.1%, -0.8%, 0); } to { transform: scale(1.09) translate3d(1.1%, 0.9%, 0); } }

/* cell and molecule motif: one hairline weight, breathing or turning very slowly */
.motif { position: absolute; right: -6%; bottom: -14%; z-index: -1; width: clamp(180px, 46%, 320px); height: auto; aspect-ratio: 1; color: var(--accent-on-dark); opacity: 0.3; pointer-events: none; transition: opacity 600ms ease; overflow: visible; }
.tile-aubergine .motif { color: var(--brand-gold); opacity: 0.34; }
.tile-ghost .motif { right: 4%; bottom: -30%; width: clamp(180px, 30%, 280px); opacity: 0.26; }
.motif-ink { color: var(--accent-deep); opacity: 0.2; right: 3%; bottom: auto; top: 50%; width: clamp(150px, 26%, 200px); translate: 0 -50%; }
.motif-side { right: -8%; top: 50%; bottom: auto; width: clamp(180px, 40%, 270px); translate: 0 -50%; }
.tile:has(> .motif-side) .lead { max-width: 66%; }
.tile:has(> .motif-ink) > div, .tile:has(> .motif-ink) > p { max-width: 68%; }
.tile-aubergine .lead { max-width: 30ch; }
.motif .m-spin, .motif .m-breathe { transform-origin: 100px 100px; animation-play-state: paused; }
.motif .m-spin { animation: motif-spin 140s linear infinite; }
.motif .m-breathe { animation: motif-breathe 9s ease-in-out infinite alternate; }
.tile.is-inview .motif .m-spin, .tile.is-inview .motif .m-breathe { animation-play-state: running; }
@keyframes motif-spin { to { transform: rotate(360deg); } }
@keyframes motif-breathe { from { transform: scale(0.965); } to { transform: scale(1.03); } }

/* hover: a hairline ring fades in, the picture eases closer. No jump, no lift. */
.tile::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent); opacity: 0; transition: opacity 360ms ease; }
@media (hover: hover) {
  .tile:hover::after { opacity: 1; }
  .tile:hover .tile-bg { scale: 1.035; }
  .tile:hover .motif { opacity: 0.46; }
  .tile-product:hover figure img, .tile-shop:hover > img { transform: scale(1.035); }
}
.tile-notes::after, .tile-faq::after { content: none; }

/* numerals, claims, steps */
.tile .num { color: var(--accent-deep); font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.tile-claim { justify-content: space-between; gap: 22px; }
.tile-claim > div { display: flex; flex-direction: column; gap: 10px; }
.tile-claim .products { margin-top: 4px; color: var(--accent-deep); font-size: 13px; font-weight: 700; }
.tile-cream.tile-claim .products { color: var(--brand-green); }
.tile-step { display: grid; grid-template-columns: 84px minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 12px 24px; }
.tile-step .h3 { font-size: clamp(21px, 2vw, 26px); }

/* day rhythm, timeline */
.daypart { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; font-size: 13px; font-weight: 700; color: var(--muted-strong); }
.daypart li { position: relative; padding-top: 16px; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.daypart li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-deep); }
.timeline { display: grid; margin-top: 6px; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--line-strong); }
.timeline li:last-child { border-bottom: 1px solid var(--line-strong); }
.timeline strong { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.timeline span { color: var(--muted); font-size: 15px; }

/* pipeline tiles */
.tile .label { display: block; margin-bottom: 22px; font-size: var(--fs-micro); }
.tile .formula, .tile .h3 + .formula, .tile .h2 + .formula { margin-top: 14px; max-width: 40ch; }
.tile .proof { color: inherit; }
.tile-forest .proof strong, .tile-aubergine .proof strong { color: var(--on-ink); }
.tile-cream .proof strong { color: var(--on-field); }

/* product tiles on the cream packshot ground of navimeso.de */
.tile-product { padding: 0; gap: 0; background: var(--brand-cream-shot); }
.tile-product figure { overflow: hidden; }
.tile-product figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 900ms var(--ease-out); }
.tile-product .tile-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 4px clamp(18px, 1.8vw, 26px) clamp(18px, 1.8vw, 26px); }
.tile-product .meta { padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--on-field) 16%, transparent); font-size: 12.5px; font-weight: 700; }
.tile-product .h3 { font-size: 21px; }
.tile-product .claim { font-size: 14px; line-height: 1.5; }
.tile-product .price { margin-top: auto; padding-top: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tile-product .price strong { color: var(--on-field); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.tile-product .text-link { color: var(--on-field); }
.tile-product .text-link:hover, .tile-shop:hover .text-link { color: var(--brand-green); }
.tile-feature figure { flex: 1; min-height: 0; }
.tile-feature figure img { height: 100%; aspect-ratio: auto; min-height: 380px; }
.tile-feature .tile-body { flex: 0 0 auto; padding: 4px var(--tile-pad) var(--tile-pad); }
.tile-feature .h3 { font-size: var(--fs-h3); }
.tile-feature .claim { font-size: 16px; max-width: 52ch; }
.tile-product .page-link { align-self: flex-start; margin-top: 4px; font-size: 15px; }
.tile-feature .price strong { font-size: 30px; }
.shelf-note { margin-top: 28px; color: var(--muted); font-size: var(--fs-small); }

/* Vitaprotein badge (official navimeso.de asset) */
.badge-vp { width: 132px; height: auto; border-radius: 8px; }

/* FAQ inside a tile */
.tile-faq { padding-block: 10px; }
.tile-faq .faq details:first-of-type { border-top: 0; }
.tile-faq .faq details:last-of-type { border-bottom: 0; }
.tile-faq .faq summary { padding-block: 24px; font-size: clamp(19px, 1.8vw, 24px); }
.tile-faq .faq details > div { padding-bottom: 24px; }

/* closing tiles */
.tile-cta { min-height: 340px; }
.tile-cta .motif { width: clamp(170px, 32%, 250px); bottom: -24%; }
.tile-cta .lead { margin-top: 18px; color: var(--on-ink-muted); }
.tile-cta .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.tile-cta .mail { color: var(--on-ink-muted); font-size: var(--fs-small); }
.tile-shop { min-height: 300px; background: var(--brand-cream-shot); }
.tile-shop > img { position: absolute; right: -8%; bottom: -12%; z-index: -1; width: 68%; transition: transform 900ms var(--ease-out); }
.tile-shop .text-link { color: var(--on-field); }

/* Notes and legal block: one quiet tile, columns divided by hairlines */
.tile-notes { background: none; padding: 0; border-radius: 0; overflow: visible; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.notes > div { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.notes p { font-size: var(--fs-small); color: var(--muted); }
.notes h3 { margin-bottom: 8px; color: var(--ink); font-size: 15px; font-weight: 700; }

/* dark: the forest tiles lift one step off the forest canvas */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile-forest { background: var(--brand-forest-2); }
  :root:not([data-theme="light"]) .band .tile-forest { background: var(--brand-forest); }
}
:root[data-theme="dark"] .tile-forest { background: var(--brand-forest-2); }
:root[data-theme="dark"] .band .tile-forest { background: var(--brand-forest); }

/* tablet: six columns */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); }
  .tile { grid-column: span var(--span-t, 3); grid-row: auto; }
  .tile-feature figure img { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .tile-clear { padding-right: 0; }
}
/* phone: one column, products two up */
@media (max-width: 760px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 12px; }
  .tile { grid-column: 1 / -1; }
  .bento-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bento-shop .tile { grid-column: span 1; }
  .bento-shop .tile-feature { grid-column: 1 / -1; }
  .tile-product .tile-body { padding: 2px 14px 16px; }
  .tile-product .h3 { font-size: 17px; }
  .tile-product .claim { font-size: 13px; }
  .tile-product .price strong { font-size: 19px; }
  .tile-feature .h3 { font-size: 23px; }
  .tile-feature .claim { font-size: 15px; }
  .tile-feature .price strong { font-size: 24px; }
  .tile-lead { min-height: 240px; }
  .tile-text { max-width: 100%; }
  .tile-wide, .tile-pic-b { padding-bottom: 128px; }
  .tile-pic-b .tile-bg { inset: auto -16px -16px -16px; height: 190px; -webkit-mask-image: linear-gradient(180deg, transparent, black 52%); mask-image: linear-gradient(180deg, transparent, black 52%); }
  .tile-wide .tile-bg { inset: auto -16px -16px 24%; height: 170px; -webkit-mask-image: linear-gradient(180deg, transparent, black 46%), linear-gradient(90deg, transparent, black 46%); mask-image: linear-gradient(180deg, transparent, black 46%), linear-gradient(90deg, transparent, black 46%); -webkit-mask-composite: source-in; mask-composite: intersect; }
  .tile-cta .motif { width: 180px; bottom: -52px; }
  .header-actions .button-small { min-height: 44px; }
  .tile-step { grid-template-columns: 56px minmax(0, 1fr); align-items: start; }
  .tile-step p { grid-column: 2; }
  .tile .num { font-size: 32px; }
  .motif, .motif-ink, .motif-side, .tile-ghost .motif { width: 180px; right: -34px; top: auto; bottom: -52px; translate: none; }
  .tile:has(> .motif) { padding-bottom: 132px; }
  .tile:has(> .motif-side) .lead, .tile:has(> .motif-ink) > div, .tile:has(> .motif-ink) > p, .tile-aubergine .lead { max-width: none; }
  .timeline li { grid-template-columns: 92px 1fr; gap: 12px; }
  .notes { grid-template-columns: 1fr; gap: 24px; }
  .tile-shop > img { width: 54%; }
  .intro-row, .split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) { .notes { grid-template-columns: 1fr; gap: 24px; } }

/* motion off: everything stays still and visible */
@media (prefers-reduced-motion: reduce) {
  .tile-bg { translate: none; transition: none; }
  .tile-bg img, .motif .m-spin, .motif .m-breathe { animation: none; }
  .tile::after, .motif, .tile-product figure img, .tile-shop > img { transition: none; }
  .tile:hover .tile-bg { scale: none; }
  .tile-product:hover figure img, .tile-shop:hover > img { transform: none; }
}
@media print { .tile-bg, .motif { display: none; } }
