/* Page-only styles for /journey. Loaded after style.css.
   Handwriting faces for the photo captions (Google Fonts is already allowed by the CSP). */

.jsr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* =========================================================================
   Hero: a living tree at dusk
   ========================================================================= */
.jhero {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  min-height: 100svh; display: flex; flex-direction: column;
  color: #eef3f7;
  background: linear-gradient(180deg, #050a16 0%, #0b1730 40%, #1b2b4a 74%, #141c2a 78%, #070b13 100%);
}
.jhero__scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; will-change: transform; }
.jhero::after { /* vignette keeps the edges deep and the text side calm */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(3, 7, 15, .55) 100%),
    linear-gradient(90deg, rgba(5, 10, 22, .55) 0%, rgba(5, 10, 22, .18) 34%, transparent 52%);
}
html[dir="rtl"] .jhero::after {
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(3, 7, 15, .55) 100%),
    linear-gradient(270deg, rgba(5, 10, 22, .55) 0%, rgba(5, 10, 22, .18) 34%, transparent 52%);
}
.jhero__inner {
  position: relative; flex: 1; width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  display: grid; grid-template-rows: 1fr auto; padding-top: 112px; padding-bottom: clamp(28px, 4vh, 48px);
  pointer-events: none;
}
.jhero__inner a, .jhero__inner button { pointer-events: auto; }
.jhero__text { align-self: center; max-width: min(40rem, 44%); padding-bottom: 9vh; }
.jhero__eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 22px;
  font-weight: 600; font-size: clamp(.95rem, 1.2vw, 1.1rem); letter-spacing: .01em;
}
.jhero__eyebrow span:nth-of-type(1) { color: #8db6ea; }
.jhero__eyebrow span:nth-of-type(2) { color: #7fd0d6; }
.jhero__eyebrow span:nth-of-type(3) { color: #f0bb70; }
.jhero__eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.jhero__title {
  font-size: clamp(2.9rem, 6.2vw, 6.6rem); font-weight: 600; line-height: .98; letter-spacing: -0.03em; max-width: 10ch;
  text-shadow: 0 2px 30px rgba(5, 10, 22, .6);
}
html[data-lang="ar"] .jhero__title { line-height: 1.3; letter-spacing: 0; }
.jhero__lede { margin-top: 24px; max-width: 32rem; font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: #c3cfdd; }
.jhero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.jhero__stats {
  display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 3.4vw, 56px); margin: 0;
  padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); max-width: min(52rem, 62%);
}
.jhero__stats div { display: flex; align-items: baseline; gap: 10px; }
.jhero__stats dt { font-size: clamp(1.8rem, 2.6vw, 2.5rem); font-weight: 600; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.jhero__stats div:nth-child(1) dt { color: #8db6ea; }
.jhero__stats div:nth-child(2) dt { color: #7fd0d6; }
.jhero__stats div:nth-child(3) dt { color: #f0bb70; }
.jhero__stats dd { margin: 0; color: #a9b8ca; font-size: .95rem; max-width: 12rem; line-height: 1.3; }

/* Entrance */
.jhero__eyebrow, .jhero__title, .jhero__lede, .jhero__cta, .jhero__stats, .jhero__cue { animation: jrise 1.1s var(--ease) both; }
.jhero__eyebrow { animation-delay: .25s; }
.jhero__title { animation-delay: .4s; }
.jhero__lede { animation-delay: .6s; }
.jhero__cta { animation-delay: .78s; }
.jhero__stats { animation-delay: 2.2s; }
.jhero__cue { animation-delay: 3.4s; }
@keyframes jrise { from { opacity: 0; transform: translateY(22px); } }

/* Labels pinned to the tree (positioned by journey.js) */
.jhero__tags { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.jtag {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0;
  font-size: .95rem; line-height: 1.2; white-space: nowrap;
  opacity: 0; transform: scale(.85); transform-origin: 7px 50%;
  transition: opacity .6s var(--ease), transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
html[dir="rtl"] .jtag { transform-origin: calc(100% - 7px) 50%; }
.jtag.is-flip { flex-direction: row-reverse; transform-origin: calc(100% - 7px) 50%; }
html[dir="rtl"] .jtag.is-flip { transform-origin: 7px 50%; }
.jtag.is-on { opacity: 1; transform: none; }
.jtag__dot {
  position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; margin-inline-end: 26px;
  background: currentColor; box-shadow: 0 0 0 3px rgba(5, 10, 22, .55), 0 0 18px 2px currentColor;
}
.jtag.is-flip .jtag__dot { margin-inline-end: 0; margin-inline-start: 26px; }
.jtag__dot::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0;
  animation: jping 2.6s ease-out infinite;
}
.jtag__dot::after {
  content: ""; position: absolute; top: 50%; inset-inline-start: 100%; width: 26px; height: 1.5px; margin-top: -.75px; background: currentColor; opacity: .7;
}
.jtag.is-flip .jtag__dot::after { inset-inline-start: auto; inset-inline-end: 100%; }
.jtag__k, .jtag__v {
  padding: 7px 12px; background: rgba(8, 15, 30, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
}
.jtag__k { font-weight: 600; border-start-start-radius: 999px; border-end-start-radius: 999px; border-inline-end-color: rgba(255, 255, 255, .08); }
.jtag__v { color: #e7eef6; border-start-end-radius: 999px; border-end-end-radius: 999px; border-inline-start: 0; }
.jtag.is-flip .jtag__k { border-radius: 0; border-start-end-radius: 999px; border-end-end-radius: 999px; border-inline-start-color: rgba(255, 255, 255, .08); border-inline-end-color: rgba(255, 255, 255, .14); }
.jtag.is-flip .jtag__v { border-radius: 0; border-start-start-radius: 999px; border-end-start-radius: 999px; border-inline-start: 1px solid rgba(255, 255, 255, .14); border-inline-end: 0; }
.jtag--root { color: #8db6ea; }
.jtag--trunk { color: #7fd0d6; }
.jtag--crown { color: #f0bb70; }
.jtag .jtag__k { color: inherit; }
@keyframes jping { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* Scroll cue */
.jhero__cue {
  position: absolute; z-index: 2; inset-inline-end: var(--gutter); bottom: clamp(24px, 4vh, 44px);
  display: flex; align-items: center; gap: 12px; color: #c3cfdd; text-decoration: none; font-weight: 500; font-size: .92rem;
}
.jhero__cue i {
  position: relative; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .45);
}
.jhero__cue i::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #f0bb70;
  animation: jwheel 1.8s var(--ease) infinite;
}
@keyframes jwheel { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 80%, 100% { transform: translateY(16px); opacity: 0; } }
.jhero__cue:hover { color: #fff; }

@media (max-width: 899px) {
  .jhero__inner { padding-top: calc(clamp(270px, 42svh, 440px) + min(96px, 11svh)); grid-template-rows: auto auto; align-content: start; padding-bottom: 32px; }
  .jhero__text { max-width: 36rem; padding-bottom: 0; align-self: start; }
  .jhero__title { max-width: 12ch; }
  .jhero__stats { max-width: none; margin-top: 30px; gap: 12px 22px; }
  .jhero__stats div { flex-direction: column; gap: 4px; flex: 1 1 0; min-width: 0; }
  .jhero__stats dd { font-size: .82rem; }
  .jhero__cue { display: none; }
  .jhero::after, html[dir="rtl"] .jhero::after { background: linear-gradient(180deg, transparent calc(clamp(270px, 42svh, 440px) + 40px), rgba(5, 9, 18, .72) calc(clamp(270px, 42svh, 440px) + 150px)); }
  .jtag { font-size: .8rem; }
  .jtag__k, .jtag__v { padding: 5px 9px; }
  .jtag__dot { width: 11px; height: 11px; margin-inline-end: 18px; }
  .jtag.is-flip .jtag__dot { margin-inline-start: 18px; }
  .jtag__dot::after { width: 18px; }
}

/* =========================================================================
   Grow: the tree grows as you scroll
   ========================================================================= */
.grow {
  position: relative; padding-top: var(--sec);
  background:
    radial-gradient(900px 600px at 0% 0%, color-mix(in srgb, var(--trunk) 9%, transparent), transparent 70%),
    radial-gradient(700px 600px at 100% 30%, color-mix(in srgb, var(--ember) 8%, transparent), transparent 70%),
    var(--bg);
}
.grow__head {
  width: min(100% - 2 * var(--gutter), 1480px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 88px); align-items: center;
}

/* ---- Three-stage preview beside the heading: a drawn growth path ---- */
.gpath { position: relative; aspect-ratio: 600 / 340; width: 100%; max-width: 640px; justify-self: end; }
html[dir="rtl"] .gpath { justify-self: start; }
.gpath__thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
html[dir="rtl"] .gpath__thread { transform: scaleX(-1); }
.gpath__thread path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gpath__ghost { stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 8; }
.gpath__line { stroke: url(#gpathGrad); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 0; }
html.jr .gpath__line { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.6, 0, .2, 1) .35s; }
html.jr .grow__head.is-in .gpath__line { stroke-dashoffset: 0; }
.gpath__list { position: absolute; inset: 0; }
.gp { position: absolute; transform: translate(-50%, -50%); }
.gp--root { left: 11.7%; top: 78.8%; }
.gp--trunk { left: 50%; top: 53.5%; }
.gp--crown { left: 88.3%; top: 19.4%; }
html[dir="rtl"] .gp--root { left: 88.3%; }
html[dir="rtl"] .gp--crown { left: 11.7%; }
.gp__btn {
  display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--ink); text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.gp__orb {
  position: relative; display: grid; place-items: center; width: clamp(72px, 7.2vw, 104px); aspect-ratio: 1; border-radius: 50%;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -22px rgba(16, 27, 46, .55), 0 0 0 8px color-mix(in srgb, currentColor 8%, transparent);
  color: var(--c); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s;
}
.gp__orb::after { /* breathing halo */
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid var(--c); opacity: 0;
  animation: jhalo 3.6s ease-out infinite;
}
.gp--trunk .gp__orb::after { animation-delay: 1.2s; }
.gp--crown .gp__orb::after { animation-delay: 2.4s; }
@keyframes jhalo { 0% { transform: scale(.92); opacity: .55; } 80%, 100% { transform: scale(1.28); opacity: 0; } }
.gp__btn:hover .gp__orb, .gp__btn:focus-visible .gp__orb { transform: translateY(-6px) scale(1.06); box-shadow: 0 0 0 1px var(--line), 0 26px 50px -24px rgba(16, 27, 46, .6), 0 0 0 10px color-mix(in srgb, var(--c) 16%, transparent); }
.gp__orb svg { width: 64%; height: 64%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.gp__t { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; font-weight: 600; color: var(--c); }
.gp__t b { font-size: .8rem; font-variant-numeric: tabular-nums; opacity: .7; }
.gp__v { font-size: .9rem; color: var(--muted); }
.gp--root { --c: var(--root); }
.gp--trunk { --c: var(--trunk); }
.gp--crown { --c: var(--leaf); }
/* mini loops */
.gp__ground { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1.6; }
.gp__sprout { stroke: var(--leaf); }
.gp__roots { stroke-dasharray: 3 4; animation: jflow 1.6s linear infinite; }
@keyframes jflow { to { stroke-dashoffset: -14; } }
.gp__ring { transform-origin: 32px 32px; animation: jring 3s ease-in-out infinite; }
.gp__ring--2 { animation-delay: .25s; }
.gp__ring--3 { animation-delay: .5s; stroke-dasharray: 5 3; }
.gp__pith { fill: currentColor; stroke: none; }
@keyframes jring { 50% { transform: scale(1.12); opacity: .55; } }
.gp__stem { stroke: color-mix(in srgb, var(--leaf) 55%, var(--ink)); }
.gp__crown { fill: color-mix(in srgb, var(--leaf) 22%, transparent); transform-origin: 32px 46px; animation: jsway 3.4s ease-in-out infinite; }
.gp__fruit { fill: var(--ember); stroke: none; animation: jtwinkle 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.gp__fruit--2 { animation-delay: 1.1s; }
@keyframes jsway { 50% { transform: rotate(-5deg); } }
@keyframes jtwinkle { 50% { transform: scale(1.45); opacity: .6; } }
/* entrance: orbs pop in along the path */
html.jr .grow__head .gp { opacity: 0; scale: .6; transition: opacity .5s var(--ease), scale .7s cubic-bezier(.34, 1.56, .64, 1); }
html.jr .grow__head.is-in .gp { opacity: 1; scale: 1; }
html.jr .grow__head.is-in .gp--root { transition-delay: .3s; }
html.jr .grow__head.is-in .gp--trunk { transition-delay: 1s; }
html.jr .grow__head.is-in .gp--crown { transition-delay: 1.7s; }
@media (max-width: 899px) {
  .grow__head { grid-template-columns: 1fr; gap: 28px; }
  .gpath { max-width: 460px; justify-self: center; }
  html[dir="rtl"] .gpath { justify-self: center; }
  .gp__orb { width: 64px; box-shadow: 0 0 0 1px var(--line), 0 12px 26px -16px rgba(16, 27, 46, .5), 0 0 0 6px color-mix(in srgb, var(--c) 8%, transparent); }
  .gp__t { margin-top: 4px; font-size: .9rem; }
  .gp__v { font-size: .8rem; }
}
.grow__head h2 { max-width: 18ch; }
html[data-lang="ar"] .grow__head h2 { max-width: 22ch; }
.grow__head .head__lede { margin-top: 20px; }
.grow__kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 600; color: var(--trunk);
}
.grow__kicker::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--root), var(--trunk), var(--leaf), var(--ember)); }
html[dir="rtl"] .grow__kicker::before { background: linear-gradient(270deg, var(--root), var(--trunk), var(--leaf), var(--ember)); }

.grow__grid {
  width: min(100% - 2 * var(--gutter), 1480px);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 88px);
  margin-top: clamp(24px, 4vw, 48px);
}
.grow__stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-block: 90px 28px; }
.grow__frame {
  position: relative; width: 100%; height: 100%; max-height: 1080px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: #dfe9ee;
  box-shadow: 0 0 0 1px var(--line), 0 50px 100px -60px rgba(16, 27, 46, .55);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
:root[data-theme="dark"] .grow__frame { background: #0b1730; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grow__frame { background: #0b1730; } }
.grow__scene { position: absolute; inset: 0; width: 100%; height: 100%; }

.grow__badges { position: absolute; top: 22px; inset-inline-start: 22px; z-index: 1; }
.grow__badge {
  position: absolute; top: 0; inset-inline-start: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 16px 8px 8px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(16, 27, 46, .5);
  opacity: 0; transform: translateY(-10px) scale(.92);
  transition: opacity .45s var(--ease), transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
html[dir="rtl"] .grow__badge { padding: 8px 8px 8px 16px; }
.grow__badge b {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: .85rem; font-variant-numeric: tabular-nums;
}
.grow__badge--root b { background: var(--root); }
.grow__badge--trunk b { background: var(--trunk); }
.grow__badge--crown b { background: var(--ember); color: #1a1206; }
.grow__badge--root { color: var(--root); }
.grow__badge--trunk { color: var(--trunk); }
.grow__badge--crown { color: var(--ember-ink); }
.grow__frame[data-phase="0"] .grow__badge--root,
.grow__frame[data-phase="1"] .grow__badge--trunk,
.grow__frame[data-phase="2"] .grow__badge--crown { opacity: 1; transform: none; }

.grow__rail {
  position: absolute; z-index: 1; inset-inline-end: 26px; top: 50%; height: min(62%, 420px); width: 6px; transform: translateY(-50%);
  border-radius: 6px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--root) 22%, transparent), color-mix(in srgb, var(--trunk) 22%, transparent) 50%, color-mix(in srgb, var(--ember) 22%, transparent));
}
.grow__fill {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: 50% 100%; transform: scaleY(var(--p, 0));
  background: linear-gradient(0deg, var(--root), var(--trunk) 50%, var(--leaf) 78%, var(--ember));
  box-shadow: 0 0 14px color-mix(in srgb, var(--trunk) 45%, transparent);
}
.grow__rail i {
  --c: var(--root);
  position: absolute; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent);
  transition: background-color .4s, box-shadow .4s, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.grow__rail i:nth-of-type(1) { top: 100%; }
.grow__rail i:nth-of-type(2) { top: 50%; --c: var(--trunk); }
.grow__rail i:nth-of-type(3) { top: 0; --c: var(--ember); }
.grow__rail i b {
  position: absolute; top: 50%; inset-inline-end: calc(100% + 12px); transform: translateY(-50%); white-space: nowrap;
  font-size: .78rem; font-style: normal; font-weight: 600; letter-spacing: .01em; color: var(--c); opacity: .45;
  padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent);
  transition: opacity .4s, transform .5s var(--ease);
}
.grow__rail i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; }
/* reached dots fill in; the current one glows and pings */
.grow__frame[data-phase] .grow__rail i:nth-of-type(1),
.grow__frame[data-phase="1"] .grow__rail i:nth-of-type(2), .grow__frame[data-phase="2"] .grow__rail i:nth-of-type(2),
.grow__frame[data-phase="2"] .grow__rail i:nth-of-type(3) { background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 28%, transparent); }
.grow__frame[data-phase="0"] .grow__rail i:nth-of-type(1),
.grow__frame[data-phase="1"] .grow__rail i:nth-of-type(2),
.grow__frame[data-phase="2"] .grow__rail i:nth-of-type(3) { transform: scale(1.3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent), 0 0 18px 4px color-mix(in srgb, var(--c) 55%, transparent); }
.grow__frame[data-phase="0"] .grow__rail i:nth-of-type(1)::after,
.grow__frame[data-phase="1"] .grow__rail i:nth-of-type(2)::after,
.grow__frame[data-phase="2"] .grow__rail i:nth-of-type(3)::after { animation: jping 2.2s ease-out infinite; }
.grow__frame[data-phase="0"] .grow__rail i:nth-of-type(1) b,
.grow__frame[data-phase="1"] .grow__rail i:nth-of-type(2) b,
.grow__frame[data-phase="2"] .grow__rail i:nth-of-type(3) b { opacity: 1; transform: translateY(-50%) scale(1.06); }
@media (max-width: 899px) { .grow__rail i b { display: none; } .grow__rail { height: 58%; } }

.grow__col { padding-bottom: 46svh; }
.grow__step {
  min-height: 78svh; display: flex; flex-direction: column; justify-content: center; padding-block: 6svh;
  opacity: .28; transform: translateX(0) scale(.97); transform-origin: 0 50%;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
html[dir="rtl"] .grow__step { transform-origin: 100% 50%; }
.grow__step:first-child { min-height: 70svh; }
.grow__step:last-child { min-height: 64svh; justify-content: flex-start; padding-top: 13svh; }
.grow__step.is-active { opacity: 1; transform: none; }
.grow__step.is-past { opacity: .4; }
.grow__n { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; }
.grow__n b {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: .95rem; font-variant-numeric: tabular-nums;
}
.grow__step--root .grow__n { color: var(--root); }
.grow__step--trunk .grow__n { color: var(--trunk); }
.grow__step--crown .grow__n { color: var(--leaf); }
.grow__step--root .grow__n b { background: var(--root); }
.grow__step--trunk .grow__n b { background: var(--trunk); }
.grow__step--crown .grow__n b { background: linear-gradient(135deg, var(--leaf), var(--ember)); }
.grow__step h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); margin-top: 16px; letter-spacing: -0.02em; }
html[data-lang="ar"] .grow__step h3 { letter-spacing: 0; }
.grow__step h3 + p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.grow__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.grow__tags li {
  font-size: .92rem; font-weight: 500; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent);
  opacity: 0; transform: translateY(10px) scale(.9);
  transition: opacity .4s var(--ease), transform .55s cubic-bezier(.34, 1.56, .64, 1);
}
.grow__step--root .grow__tags li { color: var(--root); }
.grow__step--trunk .grow__tags li { color: var(--trunk); }
.grow__step--crown .grow__tags li { color: var(--leaf); }
.grow__step.is-active .grow__tags li, .grow__step.is-past .grow__tags li { opacity: 1; transform: none; }
.grow__step.is-active .grow__tags li:nth-child(2) { transition-delay: .07s; }
.grow__step.is-active .grow__tags li:nth-child(3) { transition-delay: .14s; }
.grow__step.is-active .grow__tags li:nth-child(4) { transition-delay: .21s; }
.grow__step.is-active .grow__tags li:nth-child(5) { transition-delay: .28s; }
.grow__tags li:hover { transform: translateY(-2px) rotate(-2deg); }

.grow__note {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 4svh;
  padding: 24px; border-radius: var(--r-lg); background: var(--surface); color: var(--muted);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(16, 27, 46, .45);
}
.grow__loop { width: 48px; height: 48px; fill: none; stroke: var(--ember); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: jspin 9s linear infinite; }
html[dir="rtl"] .grow__loop { animation-direction: reverse; }
@keyframes jspin { to { transform: rotate(360deg); } }

@media (max-width: 899px) {
  .grow__grid { grid-template-columns: 1fr; gap: 0; }
  .grow__stage {
    top: 64px; height: 46svh; z-index: 2; padding: 10px 0 14px;
    background: linear-gradient(180deg, var(--bg) 85%, transparent);
  }
  .grow__frame { border-radius: 22px; }
  .grow__badges { top: 14px; inset-inline-start: 14px; }
  .grow__badge { font-size: .85rem; padding: 5px 12px 5px 5px; }
  html[dir="rtl"] .grow__badge { padding: 5px 5px 5px 12px; }
  .grow__badge b { width: 28px; height: 28px; font-size: .78rem; }
  .grow__rail { inset-inline-end: 14px; }
  .grow__col { padding-bottom: 26svh; }
  .grow__step, .grow__step:first-child { min-height: 58svh; padding-block: 28px; justify-content: flex-start; transform: none; }
  .grow__step:last-child { min-height: 0; padding-top: 28px; }
  .grow__step h3 { font-size: 1.6rem; }
}

/* =========================================================================
   Branches in real life: instant prints
   ========================================================================= */
.snaps {
  position: relative; overflow: hidden; overflow: clip;
  background:
    radial-gradient(700px 520px at 25% 45%, color-mix(in srgb, var(--ember) 10%, transparent), transparent 70%),
    var(--surface);
}
html[dir="rtl"] .snaps { background: radial-gradient(700px 520px at 75% 45%, color-mix(in srgb, var(--ember) 10%, transparent), transparent 70%), var(--surface); }
.snaps__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.snaps__table { position: relative; display: grid; place-items: center; min-height: clamp(480px, 46vw, 660px); }
.snaps__table::before { /* a soft shadow pool on the table */
  content: ""; position: absolute; width: 70%; height: 16%; bottom: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 27, 46, .22), transparent); filter: blur(6px);
}
.snaps__stack {
  position: relative; width: clamp(240px, 25vw, 360px); aspect-ratio: 0.74; touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.print {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 6.5% 6.5% 0; border: 0; border-radius: 3px;
  background-color: #fbf9f3;
  background-image:
    linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .03)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 2px 6px rgba(20, 30, 50, .12), 0 22px 40px -22px rgba(20, 30, 50, .55);
  transform: translate(var(--x, 0), calc(var(--y, 0px) + var(--lift, 0px))) rotate(calc(var(--r, 0deg) + var(--tilt, 0deg))) scale(var(--s, 1));
  transition: transform .75s var(--ease), box-shadow .4s, opacity .4s;
  cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent; text-align: center;
}
.print.is-top:hover { --lift: -8px; --tilt: -1.5deg; box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 4px 10px rgba(20, 30, 50, .14), 0 34px 50px -24px rgba(20, 30, 50, .6); }
.print.is-flying, .print.is-drag { transition: box-shadow .3s; }
.print.is-drag { cursor: grabbing; box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 40px 60px -26px rgba(20, 30, 50, .65); }
.print:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.print__photo {
  position: relative; display: block; flex: none; aspect-ratio: 0.86; overflow: hidden; background: #1b2232;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.print__photo::after { /* gloss + slight vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .18), transparent 32%), radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, .25));
}
.print__photo img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.print__cap {
  flex: 1; display: grid; place-items: center; padding: 4px 6px 6px; line-height: 1.1;
  font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; font-weight: 700; font-size: clamp(1.15rem, 1.55vw, 1.5rem);
  color: #26386e; transform: rotate(-1.6deg);
}
html[data-lang="ar"] .print__cap { font-family: "Aref Ruqaa", var(--f-arabic); font-weight: 400; font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.5; }
.print:nth-child(3n+1)::before, .print:nth-child(3n+2)::after { /* washi tape */
  content: ""; position: absolute; z-index: 1; width: 34%; height: 9%; top: -3.5%; left: 33%;
  background: repeating-linear-gradient(45deg, rgba(240, 187, 112, .62) 0 6px, rgba(240, 187, 112, .48) 6px 12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08); transform: rotate(-4deg);
}
.print:nth-child(3n+2)::after { left: auto; right: -6%; top: 8%; width: 26%; transform: rotate(38deg); background: repeating-linear-gradient(45deg, rgba(127, 208, 214, .6) 0 6px, rgba(127, 208, 214, .45) 6px 12px); }
.print.is-dev .print__photo img { animation: jdevelop 1.6s ease-out both; }
@keyframes jdevelop {
  0% { filter: sepia(.7) saturate(.25) brightness(1.65) contrast(.65) blur(1.5px); }
  60% { filter: sepia(.15) saturate(.85) brightness(1.08) contrast(.95) blur(0); }
  100% { filter: none; }
}
:root[data-theme="dark"] .print { background-color: #ecebe5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .print { background-color: #ecebe5; } }

/* Dealing in */
.snaps__stack.is-dealing .print:not(.is-dealt) { opacity: 0; transform: translate(calc(var(--x, 0px) - 60px), calc(var(--y, 0px) + 140px)) rotate(calc(var(--r, 0deg) - 22deg)) scale(.9); transition: none; }
.snaps__stack.is-dealing .print.is-dealt { transition: transform .9s cubic-bezier(.2, .9, .25, 1.15), opacity .4s; }

.snaps__text { display: grid; gap: 22px; justify-items: start; }
.snaps__eyebrow { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.snaps__eyebrow span:first-child { color: var(--leaf); }
.snaps__eyebrow span:last-child { color: var(--ember-ink); }
.snaps__eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); background: color-mix(in srgb, var(--ink) 30%, transparent); }
.snaps__text h2 { max-width: 14ch; }
html[data-lang="ar"] .snaps__text h2 { max-width: 18ch; }
.snaps__lede { color: var(--muted); font-size: 1.12rem; max-width: 32rem; }
.snaps__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.snaps__btn {
  width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, color .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.snaps__btn:hover { background: var(--ink); color: var(--bg); }
.snaps__btn:active { transform: scale(.9); }
.snaps__btn--next:hover svg { animation: jnudge .6s var(--ease); }
html[dir="rtl"] .snaps__btn svg { transform: scaleX(-1); }
@keyframes jnudge { 50% { translate: 4px 0; } }
.snaps__count { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 70px; justify-content: center; }
.snaps__count b { font-size: 1.5rem; color: var(--ink); }
.snaps__hint {
  flex-basis: 100%; font-family: "Caveat", cursive; font-size: 1.35rem; color: var(--ember-ink); transform: rotate(-2deg);
}
html[data-lang="ar"] .snaps__hint { font-family: "Aref Ruqaa", var(--f-arabic); font-size: 1.15rem; }

@media (max-width: 860px) {
  .snaps__grid { grid-template-columns: 1fr; }
  .snaps__table { min-height: 0; padding-block: 24px 36px; order: 2; }
  .snaps__stack { width: min(64vw, 300px); }
  .snaps__text { order: 1; }
}

/* =========================================================================
   Scroll-in reveals (only when journey.js is running)
   ========================================================================= */
html.jr [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
html.jr [data-reveal].is-in { opacity: 1; transform: none; }
html.jr .grow__intro > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
html.jr .grow__head.is-in .grow__intro > * { opacity: 1; transform: none; }
html.jr .grow__head.is-in .grow__intro > :nth-child(2) { transition-delay: .1s; }
html.jr .grow__head.is-in .grow__intro > :nth-child(3) { transition-delay: .2s; }
html.jr .grow__head[data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .grow__step, .grow__step.is-past { opacity: 1; transform: none; }
  .grow__tags li { opacity: 1; transform: none; }
  html.jr [data-reveal], html.jr .grow__intro > *, html.jr .grow__head .gp { opacity: 1; transform: none; scale: 1; }
  html.jr .gpath__line { stroke-dashoffset: 0; }
  .gp__orb::after, .gp__roots, .gp__ring, .gp__crown, .gp__fruit, .grow__rail i::after { animation: none; }
  .jtag__dot::before, .grow__loop, .jhero__cue i::after { animation: none; }
}
