/* Sirocco landing — hero section
   Layout reference: full-bleed looping film, transparent header over it,
   oversized headline + two-line lead + facts row anchored bottom-left. */

:root {
  --bg: #c2552d;                      /* hero film background (terracotta) */
  --page: #f3ede4;                    /* light sections */
  --surface: #fbf8f3;
  --rim: #ffffff;
  --ink-d: #2b211a;
  --muted: #7a6a58;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ink: #ffffff;
  --ink-85: rgba(255, 255, 255, 0.85);
  --ink-70: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.16);
  --pill-bg: #fafafa;
  --pill-ink: #0a0a0a;
  --terra: #c2552d;
  --miel: #e6b25c;
  --safran: #f2c94c;          /* logo colour */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5.56vw, 80px);  /* 80px at 1440 */
  --hero-x: clamp(20px, 4.58vw, 66px);  /* 66px at 1440 */
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--miel); outline-offset: 3px; border-radius: 6px; }

/* ───────────────────────── header ───────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled { background: rgba(194, 85, 45, 0.82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }

.site-header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

.logo { display: inline-flex; align-items: center; gap: 9px; justify-self: start; }
.logo img { width: 22px; height: 27px; display: block; }
.logo span { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__item {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em; line-height: 21px;
  color: var(--ink);
  opacity: 1; transition: opacity .2s ease;
}
.nav__item:hover { opacity: 0.7; }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }

.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  background: var(--pill-bg); color: var(--pill-ink);
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  transition: background-color .2s ease, transform .2s ease;
}
.pill:hover { background: #ffffff; }
.pill:active { transform: scale(0.98); }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s ease, top .25s ease; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
[data-menu="open"] .burger span:first-child { top: 19.5px; transform: rotate(45deg); }
[data-menu="open"] .burger span:last-child { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu { display: none; }

/* ───────────────────────── hero ───────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  color: var(--ink);
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  display: block;
}
/* legibility: soft top band for the header, soft bottom-left for the copy */
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(158, 63, 28, 0.35) 0%, rgba(158, 63, 28, 0) 16%),
    linear-gradient(0deg, rgba(158, 63, 28, 0.35) 0%, rgba(158, 63, 28, 0) 38%),
    radial-gradient(120% 90% at 0% 100%, rgba(158, 63, 28, 0.3) 0%, rgba(158, 63, 28, 0) 55%);
}

.hero__content {
  width: 100%;
  padding: calc(var(--header-h) + 40px) max(var(--hero-x), env(safe-area-inset-right, 0px)) clamp(32px, 2.85vw, 41px) max(var(--hero-x), env(safe-area-inset-left, 0px));
}

.hero__title {
  margin: 0;
  font-size: clamp(56px, 6.6vw, 128px);   /* 95px at 1440 */
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__lead {
  margin: 22px 0 0;
  max-width: 640px;
  font-size: clamp(17px, 1.32vw, 22px);   /* 19px at 1440 */
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.005em;
  color: var(--ink-85);
}

.hero__facts {
  list-style: none;
  margin: clamp(40px, 6.6vh, 64px) 0 0;
  padding: 22px 0 0;
  max-width: 760px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap;
  column-gap: 40px; row-gap: 12px;
}
.hero__facts li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em; line-height: 20px;
  color: var(--ink-85);
  white-space: nowrap;
}
.hero__facts svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────────────── product switch (Looping ⇄ Lending) ─────────────────────────
   Glass segmented control centred under the header; the white thumb slides to the active product,
   the two films cross-fade and the copy swaps with a short staggered rise. */

.switch {
  position: absolute; z-index: 3; left: 50%; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 18px);
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 228, 212, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 208, 0.18), inset 0 1px 0 rgba(255, 240, 230, 0.14);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.switch__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--w, 0px);
  transform: translateX(var(--x, 4px));
  border-radius: 999px;
  background: rgba(255, 214, 192, 0.26);                       /* pastel terracotta, see-through */
  box-shadow: inset 0 0 0 1px rgba(255, 232, 218, 0.30), inset 0 1px 0 rgba(255, 246, 238, 0.30), 0 6px 18px -8px rgba(110, 36, 12, 0.35);
  transition: transform .55s var(--ease-out), width .55s var(--ease-out);
}
.switch__opt {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  color: rgba(255, 238, 228, 0.66);
  transition: color .35s var(--ease);
}
.switch__opt:hover { color: rgba(255, 246, 240, 0.9); }
.switch__opt[aria-selected="true"] { color: #fff8f2; }
.switch__opt:focus-visible { outline: 2px solid rgba(255, 226, 208, 0.7); outline-offset: 2px; }

.hero__media .hero__video { opacity: 0; transform: scale(1.035); transition: opacity .9s var(--ease), transform 1.4s var(--ease-out); }
.hero__media .hero__video.is-active { opacity: 1; transform: none; }

.hero__panels { display: grid; }
.hero__panel { grid-area: 1 / 1; }
.hero__panel[hidden] { display: block !important; visibility: hidden; }
.hero__panel > * { transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s var(--ease); }
.hero__panel:not(.is-active) > * { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
.hero__panel.is-active > * { transition: opacity .7s var(--ease), transform .9s var(--ease-out), filter .7s var(--ease); }
.hero__panel.is-active > :nth-child(1) { transition-delay: .12s; }
.hero__panel.is-active > :nth-child(2) { transition-delay: .2s; }
.hero__panel.is-active > :nth-child(3) { transition-delay: .28s; }
.hero__panel.is-entering > * { opacity: 0; transform: translateY(16px); filter: blur(4px); transition: none; }

@media (prefers-reduced-motion: reduce) {
  .switch__thumb, .hero__panel > *, .hero__media .hero__video { transition: none !important; }
  .hero[data-mode="lending"] .hero__media { background-image: url("assets/poster/sirocco-lending-poster-1920x1080.webp"); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .hero[data-mode="lending"] .hero__media { background-image: url("assets/poster/sirocco-lending-mobile-poster-1080x1350.webp"); }
}

/* ───────────────────────── bento: "most powerful app" ─────────────────────────
   Layout reference: centred section head + CTA, then a 784fr / 472fr row of tiles. */

.bento { background: var(--page); color: var(--ink-d); padding-block: 120px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: max(16px, min(80px, 5.6vw)); padding-right: max(16px, min(80px, 5.6vw)); }

.sec-h { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.sec-h h2 { margin: 0; font-size: clamp(40px, 4.45vw, 64px); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.sec-h p { margin: 0; max-width: 720px; font-size: 21px; line-height: 1.4; letter-spacing: -0.005em; color: var(--muted); text-wrap: pretty; }
.sec-cta { display: flex; justify-content: center; margin-top: 28px; }

.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 999px;
  font-size: 16px; font-weight: 500; line-height: 24px; letter-spacing: -0.005em; white-space: nowrap;
  box-shadow: 0 1px 3.5px rgba(0, 0, 0, 0.04);
  transition: transform .35s var(--ease-out), background-color .3s, box-shadow .3s, color .3s;
}
.btn::after { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn-dark { color: #fbf6ee; background: linear-gradient(#2b211a, #4a3a2e); }
.btn-dark::after { background: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)); }
.btn-dark:hover { box-shadow: 0 6px 18px rgba(43, 33, 26, 0.2); }

.grid { display: flex; flex-direction: column; gap: 12px; margin-top: 56px; }
.row { display: grid; grid-template-columns: 784fr 472fr; gap: 12px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-width: 0; min-height: 540px; padding: 48px; border-radius: 32px; overflow: clip;
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--rim), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 1.1s var(--ease-out) .05s;   /* hover lift: slow, gentle start (shadow switches at once) */
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43, 33, 26, 0.08); }
.bc { display: flex; flex-direction: column; gap: 10px; max-width: 400px; line-height: 1.4; }
.bc p { margin: 0; font-size: 17px; letter-spacing: -0.005em; color: var(--muted); }
.bc .eyebrow { font-size: 15px; font-weight: 600; line-height: 1.45; }
.bc h3 { margin: 0; font-size: 36px; font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; }
.visual { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px; }
.fig { display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.fig small { font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--muted); }
.fig strong { font-size: clamp(84px, 8.34vw, 120px); font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.fig span { font-size: 17px; line-height: 1.4; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.grad {
  background: linear-gradient(90deg, #c2552d, #e0793a 55%, #f2c94c) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.earnmeter { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-top: 14px; }
.earnmeter i {
  --h: 100%; flex: 1 1 0%; max-width: 14px; height: var(--h); border-radius: 3px;
  position: relative; overflow: hidden;
  background: rgba(194, 85, 45, 0.14);          /* empty track */
  transform-origin: center bottom;
  transition: transform .9s var(--ease-out) var(--d);
}
/* the fill: rises from the bottom, bar after bar, then drains in the same order (looping wave) */
.earnmeter i::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(#c2552d, #f2c94c);
  transform-origin: center bottom;
}

/* scroll reveal (main.js sets data-in once an element enters the viewport) */
@media (prefers-reduced-motion: no-preference) {
  [data-live] [data-r]:not([data-in]) { opacity: 0; transform: translateY(var(--ry, 28px)); }
  [data-live] [data-r="left"]:not([data-in]) { transform: translate(-36px); }
  [data-live] [data-r="right"]:not([data-in]) { transform: translate(36px); }
  [data-live] [data-r] { transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s); }
  [data-live] [data-r][data-in].meth, [data-live] [data-r][data-in].tile { transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease-out) .05s; }
  [data-live] .earnmeter:not([data-in]) i { transform: scaleY(0.08); }
  .earnmeter[data-in] i::after { transform: scaleY(0); animation: fill 4.2s var(--ease) calc(.9s + var(--d) * 1.6) infinite; }
  .tile[data-in] .grad { animation: grad-drift 7s ease-in-out 0s 2 alternate; }
}
@keyframes fill {
  0%   { transform: scaleY(0); opacity: .55; }
  22%  { transform: scaleY(1); opacity: 1; }
  30%  { opacity: .55; }
  38%  { opacity: 1; }
  78%  { transform: scaleY(1); opacity: 1; }
  96%, 100% { transform: scaleY(0); opacity: .55; }
}
@keyframes grad-drift { 100% { background-position: 100% 0; } }

@media (max-width: 980px) {
  .row { grid-template-columns: 1fr; }
  .tile { min-height: auto; }
}
@media (max-width: 760px) {
  .bento { padding-block: 88px; }
  .tile { padding: 32px; }
  .bc h3 { font-size: 30px; }
  .sec-h p { font-size: 18px; }
}

/* ───────────────────────── fund: "free to move" ─────────────────────────
   Layout reference: section head, then 400fr / 342fr / 400fr — two route cards each side,
   the spinning Sirocco coin in the middle (in place of the phone). */

.fund { --mist: #f3ede4; background: #fffcf7; color: var(--ink-d); padding-block: 140px; overflow: clip; }
.fund .sec-h h2 { line-height: 1.04; }
.methods { display: grid; grid-template-columns: 400fr 342fr 400fr; align-items: center; gap: 24px; max-width: 1190px; margin: 64px auto 0; }
.col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.meth {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 288px; padding: 36px; border-radius: 28px;
  background: var(--mist);
  transition: transform 1.1s var(--ease-out) .05s, background-color .5s, opacity .5s;
}
.meth:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43, 33, 26, 0.08); }
.meth .sp { flex: 1 1 0%; }
.meth .eyebrow { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; letter-spacing: -0.005em; color: var(--muted); }
.meth h3 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.45; letter-spacing: -0.02em; }
.meth p { margin: 0; max-width: 328px; font-size: 16px; line-height: 1.45; color: var(--muted); }

/* route: nodes joined by dotted lines with a travelling dot */
.route { display: flex; align-items: center; height: 56px; }
.nd {
  flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; transition: transform .4s var(--ease-out);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 16px -6px rgba(0, 0, 0, 0.14), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.nd.ic { color: var(--ink-d); }
.nd.ic svg { width: 22px; height: 22px; }
.nd.mk { background: none; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.2); }
.nd.mk svg { width: 52px; height: 52px; display: block; }
.nd.sx { background: linear-gradient(#3a2c22, #17110d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px -6px rgba(0, 0, 0, 0.35); }
.nd.sx img { width: 18px; height: 22px; display: block; }
.stk { display: flex; }
.stk .nd { margin-left: -14px; box-shadow: 0 0 0 3px var(--mist), 0 6px 16px -6px rgba(0, 0, 0, 0.18); }
.stk .nd:first-child { margin-left: 0; }
.ln { position: relative; flex: 1 1 0%; min-width: 18px; max-width: 64px; height: 2px; margin: 0 6px; border-radius: 2px;
  background-image: linear-gradient(90deg, #cbbfae 50%, transparent 0); background-size: 6px 2px; }
.ln b { position: absolute; top: 50%; left: 0; width: 100%; height: 6px; margin-top: -3px; opacity: 0; }
.ln b::before { content: ""; position: absolute; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-d); }
.lift:hover .nd { transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) {
  .ln b { animation: flow 2.4s cubic-bezier(.45, 0, .2, 1) infinite; }
  .ln.two b:nth-child(2) { animation-name: flowBack; animation-delay: 1.2s; }
  .ln.late b { animation-delay: .6s; }
}
@keyframes flow { 0% { opacity: 0; translate: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; translate: 100%; } }
@keyframes flowBack { 0% { opacity: 0; translate: 100%; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; translate: 0; } }

/* centre: the live coin */
.fcoin { min-width: 0; }
.coin-stage { position: relative; aspect-ratio: 342 / 600; width: 100%; }
.coin-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Two-layer contact shadow driven by coin-spin.js: --f = 1 face-on … ~0.15 edge-on, --lift = -1 low … 1 high.
   Outer layer: broad, very soft penumbra that barely changes. Inner layer: darker core that tracks the coin's width. */
.coin-shadow { position: absolute; left: 18%; right: 18%; bottom: 22%; height: 30px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43, 33, 26, 0.17), rgba(43, 33, 26, 0)); filter: blur(7px);
  transform: scaleX(calc(0.45 + 0.55 * var(--f, 1))); opacity: calc(1 - 0.12 * var(--lift, 0)); }
.coin-shadow::after { content: ""; position: absolute; left: 13%; right: 13%; top: 32%; height: 36%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43, 33, 26, 0.42), rgba(43, 33, 26, 0)); filter: blur(2.5px);
  transform: scaleX(calc((0.08 + 0.92 * var(--f, 1)) / (0.45 + 0.55 * var(--f, 1))));
  opacity: calc(0.9 - 0.22 * var(--lift, 0)); }
.coin-stage.no-webgl { background: url("assets/brand/sirocco-coin.svg") center / 70% no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .drift { animation: float linear both; animation-timeline: view(); animation-range: cover 22% cover 78%; }
}
@keyframes float { 0% { translate: 0 22px; } 100% { translate: 0 -22px; } }

@media (max-width: 980px) {
  .methods { grid-template-columns: 1fr 1fr; }
  .fcoin { order: -1; grid-column: 1 / -1; margin-bottom: 8px; }
  .coin-stage { aspect-ratio: auto; height: 360px; max-width: 420px; margin: 0 auto; }
  .meth { min-height: 240px; }
}
@media (max-width: 760px) {
  .fund { padding-block: 88px; }
  .methods { grid-template-columns: 1fr; }
  .coin-stage { height: 300px; }
}

/* ───────────────────────── mobile ───────────────────────── */

@media (max-width: 1023px) {
  .nav { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .burger { display: block; }
  .site-header__actions { gap: 8px; }
  .mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    display: grid;
    gap: 2px;
    padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 20px;
    background: rgba(194, 85, 45, 0.96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .35s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .35s;
  }
  [data-menu="open"] .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .35s cubic-bezier(.2, .7, .2, 1); }
  [data-menu="open"] { background: rgba(194, 85, 45, 0.96); }
  .mobile-menu a { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .logo span { font-size: 20px; }
  .pill { height: 36px; padding: 0 14px; font-size: 14px; }

  /* portrait: centred copy on top, film below (coin sits in its lower half) */
  .hero { align-items: stretch; flex-direction: column; }
  .hero__media { position: relative; inset: auto; order: 2; flex: 1; min-height: 62vw; margin-top: -18vw; }
  .hero__video { object-position: 50% 62%; }
  .hero__media::after {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(194, 85, 45, 0) 30%),
      linear-gradient(0deg, var(--bg) 0%, rgba(194, 85, 45, 0) 22%);
  }
  .hero__content { order: 1; text-align: center; padding-top: calc(var(--header-h) + 96px); padding-bottom: 0; }
  .switch__opt { height: 36px; padding: 0 18px; font-size: 14px; }
  .hero__title { font-size: clamp(44px, 13vw, 64px); }
  .hero__lead { margin: 16px auto 0; max-width: 34ch; }
  .br-desktop { display: none; }
  .hero__facts {
    position: absolute; left: 0; right: 0; bottom: max(24px, env(safe-area-inset-bottom, 0px));
    margin: 0 var(--hero-x); max-width: none;
    justify-content: center; column-gap: 20px; row-gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__media { background: var(--bg) url("assets/poster/sirocco-hero-poster-1920x1080.webp") 62% 50% / cover no-repeat; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .hero__media { background-image: url("assets/poster/sirocco-hero-mobile-poster-1080x1350.webp"); background-position: 50% 62%; }
}

/* ───────────────────────── hero ledger reveal ───────────────────────── */
.hero__reveal { position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity .26s var(--ease); }
.hero__reveal.is-swapping { opacity: 0; }

/* ───────────────────────── lending: first section after the hero ─────────────────────────
   Mirrors backpack.exchange "Self-custody" (panel 1280×840 r40, copy left, device right, 3 feature cards). */
[data-show="lending"] { display: none; }
body[data-mode="lending"] [data-show="lending"] { display: block; }
body[data-mode="lending"] [data-show="looping"] { display: none; }

.lend { --mist: #f3ede4; background: #fffcf7; color: var(--ink-d); padding: 120px 0 24px; overflow: clip; }
.lend .sec-h h2 { line-height: 1.02; letter-spacing: -0.035em; }
.lend__panel { position: relative; overflow: clip; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  min-height: clamp(560px, 58.4vw, 840px); margin-top: 56px; border-radius: 40px; background: var(--mist); }
.lend__glow { position: absolute; top: 20px; bottom: 60px; left: 54.7%; width: 620px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 252, 247, 0.95), rgba(255, 252, 247, 0.55) 50%, rgba(255, 252, 247, 0)); }
.lend__copy { position: relative; display: flex; flex-direction: column; gap: 20px; max-width: 600px; padding: 48px 0 48px 88px; }
.lend__copy .eyebrow { margin: 0; max-width: 500px; font-size: 15px; font-weight: 600; line-height: 1.45; letter-spacing: -0.005em; color: var(--muted); }
.lend__copy h2 { margin: 0; font-size: clamp(40px, 4.17vw, 60px); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
.lend__copy > p:not(.eyebrow) { margin: 0; max-width: 500px; font-size: 19px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.lend__acts { display: flex; align-items: center; gap: 20px; padding-top: 12px; }
.lend__coin { position: relative; align-self: stretch; display: grid; place-items: center; }
.lend__stage { width: min(400px, 90%); }

.lend__feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.lend__feat { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 28px; overflow: clip; background: var(--mist);
  transition: transform 1.1s var(--ease-out) .05s; }
.lend__feat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43, 33, 26, 0.08); }
.lend__feat .gap { height: 12px; }
.lend__feat h3 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.45; letter-spacing: -0.005em; }
.lend__feat p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted); }

/* card 1: numbered pills (Backpack's seed phrase, here the collateral list) */
.lseed { display: grid; grid-template-columns: repeat(3, max-content); gap: 6px 8px; height: 56px; align-content: center; }
.lseed span { display: flex; align-items: center; gap: 7px; height: 27px; padding: 0 12px 0 10px; border-radius: 999px; background: #fff;
  font-size: 13.5px; font-weight: 500; line-height: 1.5; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(0, 0, 0, 0.04); }
.lseed i { font-style: normal; font-size: 11px; color: var(--muted); }
.lseed b { font-weight: 500; filter: blur(3.5px); transition: filter .5s var(--ease-out); }
.lend__feat:hover .lseed b { filter: blur(0); }

/* card 2: overlapping asset coins */
.lchips { display: flex; align-items: center; height: 56px; }
.lchip { position: relative; display: block; width: 48px; height: 48px; margin-right: -8px; border-radius: 999px; overflow: clip;
  border: 3px solid var(--mist); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); background: #fff; }
.lchip svg { display: block; width: 100%; height: 100%; }
.lchip.more { display: grid; place-items: center; background: #f6f1ea; color: #4a3a2e; font-size: 14px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  [data-live] [data-r="pop"]:not([data-in]) { opacity: 0; transform: scale(.86); }
  [data-r="pop"] { transition: opacity .5s var(--ease-out) var(--d, 0s), transform .6s var(--ease-out) var(--d, 0s); }
}

@media (max-width: 980px) {
  .lend__panel { grid-template-columns: 1fr; min-height: 0; }
  .lend__copy { padding: 48px 32px 0; max-width: none; }
  .lend__coin { height: auto; padding: 24px 0; }
  .lend__stage { width: min(300px, 80%); }
  .lend__glow { left: 50%; top: auto; bottom: -60px; width: 520px; height: 520px; translate: -50% 0; }
  .lend__feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .lend { padding-top: 88px; }
  .lend__panel { border-radius: 32px; }
  .lend__copy { padding: 36px 24px 0; }
  .lend__coin { height: auto; }
  .lend__feats { grid-template-columns: 1fr; }
}
[data-live] [data-r][data-in].lend__feat { transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease-out) .05s; }

/* lending panel: the four stock coins */
.stock-stage { position: relative; width: min(560px, 92%); aspect-ratio: 1; }
.stock-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 980px) { .stock-stage { width: min(380px, 86%); } }

/* lending animation stage */
.lend__coin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 0; }
#lend-anim { aspect-ratio: 4 / 5; width: min(540px, 90%); }

/* ───────────────────────── Leverage (Looping) — backpack.exchange/about/earn "More from your dollars" band.
   Values = Backpack's computed styles × 0.8 (the scale the reference was viewed at): 152px pad → 122, 208px figure → 166,
   68px title → 54, 1080px card → 864, etc. Sirocco palette: pastel terracotta band, no stars, one-hue dots,
   a slim 1x → 4x slider in the 32px band where Backpack has its APY bars. ───────────────────────── */
.lever {
  --lv-bg: #e9ad93;                 /* pastel terracotta band */
  --lv-card: #efc0aa;               /* card: one step lighter, like #262626 on #171717 */
  --lv-ink: #2b211a;
  --lv-soft: rgba(43, 33, 26, 0.78);   /* Backpack #d4d4d4 */
  --lv-mute: rgba(43, 33, 26, 0.58);   /* Backpack #a3a3a3 */
  --lv-line: rgba(43, 33, 26, 0.08);   /* Backpack rgba(255,255,255,.06) */
  background: var(--lv-bg);
  border-radius: 32px;
  padding: 122px 0 90px;              /* Backpack: 122 at the bottom too, minus the 32px the next sheet overlaps */
  color: var(--lv-ink);
  text-align: center;
}
.lever__wrap { max-width: 1152px; margin: 0 auto; padding: 0 64px; }
.lever__kicker { margin: 0; font-size: 12.8px; line-height: 14.4px; color: var(--lv-mute); }
.lever__big {
  display: block; margin-top: 14.4px;
  font-size: clamp(104px, 11.6vw, 166.4px); font-weight: 300; line-height: .92; letter-spacing: -0.055em;
  background: linear-gradient(#2b211a 10%, #6b301b 55%, #a8472a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lever__title { margin: 14.4px 0 0; font-size: clamp(36px, 3.78vw, 54.4px); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; color: var(--lv-ink); }
.lever__lead { margin: 14.4px 0 0; font-size: 13.6px; line-height: 1.4; color: var(--lv-soft); }

.lever__card {
  max-width: 864px; margin: 44.8px auto 0; text-align: left;
  background: var(--lv-card); border-radius: 25.6px; overflow: clip;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.lever__body { padding: 32px 38.4px 19.2px; }

/* slider: sits in the 32px band of the APY bars, slim track + round thumb */
.lever__slider { position: relative; height: 32px; }
.lever__track { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); }
.lever__fill { position: absolute; inset: 0 auto 0 0; width: calc(11px + (100% - 22px) * var(--p)); border-radius: 999px; background: linear-gradient(90deg, #d98a68, #c2552d 60%, #a8452a); }
.lever__range {
  position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; background: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.lever__range::-webkit-slider-runnable-track { height: 32px; background: none; }
.lever__range::-moz-range-track { height: 32px; background: none; }
.lever__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: 5px; border-radius: 50%; border: 0;
  background: #fffaf5; box-shadow: 0 0 0 1px rgba(43, 33, 26, .06), 0 2px 8px -2px rgba(43, 33, 26, .45);
}
.lever__range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 0; background: #fffaf5; box-shadow: 0 0 0 1px rgba(43, 33, 26, .06), 0 2px 8px -2px rgba(43, 33, 26, .45); }
.lever__range:focus-visible { outline: none; }
.lever__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--lv-ink); }

.lever__rows { margin-top: 19.2px; }
.lever__row { display: flex; align-items: center; justify-content: space-between; padding: 11.2px 0; }
.lever__row + .lever__row { border-top: 1px solid var(--lv-line); }
.lever__row > span { line-height: 1.2; display: flex; align-items: center; gap: 9.6px; font-size: 12px; color: var(--lv-soft); }
.lever__row > span i { width: 8px; height: 8px; border-radius: 2.4px; flex: none; }
.lever__row em { font-style: normal; font-variant-numeric: tabular-nums; }
.lever__row b { line-height: 1.2; font-size: 14.4px; font-weight: 600; letter-spacing: -0.01em; color: var(--lv-ink); font-variant-numeric: tabular-nums; }

.lever__foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--lv-line); }
.lever__foot > div { display: flex; align-items: baseline; gap: 11.2px; padding: 19.2px 38.4px; }
.lever__foot > div + div { border-left: 1px solid var(--lv-line); }
.lever__foot b { line-height: 1.2; font-size: 17.6px; font-weight: 500; letter-spacing: -0.02em; color: var(--lv-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lever__foot span { font-size: 12px; color: var(--lv-mute); }

@media (max-width: 760px) {
  .lever { padding: 88px 0; border-radius: 28px; }
  .lever__wrap { padding: 0 16px; }
  .lever__lead { font-size: 15px; }
  .lever__card { margin-top: 36px; border-radius: 22px; }
  .lever__body { padding: 24px 22px 14px; }
  .lever__row > span { font-size: 13px; }
  .lever__foot { grid-template-columns: 1fr; }
  .lever__foot > div { padding: 16px 22px; flex-wrap: wrap; gap: 4px 10px; }
  .lever__foot > div + div { border-left: 0; border-top: 1px solid var(--lv-line); }
  .lever__foot span { font-size: 13px; }
}

/* ───────── #lever backgrounds (4 candidates from the "Fonds terracotta" sheet) — data-bg on the section ───────── */
.lever { position: relative; overflow: hidden; isolation: isolate;
  --lv-big: linear-gradient(#2b211a 10%, #6b301b 55%, #a8472a 100%);
  --lv-track: rgba(255, 255, 255, 0.55); --lv-fill: linear-gradient(90deg, #d98a68, #c2552d 60%, #a8452a);
  --lv-d1: #7a2e16; --lv-d2: #c2552d; --lv-d3: #fff3ea; --lv-hi: rgba(255, 255, 255, 0.4); --lv-glass: 0px; }
.lever__wrap { position: relative; z-index: 2; }
.lever__big { background: var(--lv-big); -webkit-background-clip: text; background-clip: text; }
.lever__track { background: var(--lv-track); }
.lever__fill { background: var(--lv-fill); }
.lever__row > span i.d1 { background: var(--lv-d1); }
.lever__row > span i.d2 { background: var(--lv-d2); }
.lever__row > span i.d3 { background: var(--lv-d3); }
.lever__card { box-shadow: inset 0 1px 0 var(--lv-hi); backdrop-filter: blur(var(--lv-glass)); -webkit-backdrop-filter: blur(var(--lv-glass)); }
.lever__smoke { position: absolute; inset: -15%; z-index: 0; pointer-events: none; display: none; }
.lever__smoke i { position: absolute; border-radius: 50%; filter: blur(90px); animation: lv-drift 18s ease-in-out infinite alternate; }
.lever__smoke i:nth-child(2) { animation-duration: 24s; animation-direction: alternate-reverse; }
.lever__smoke i:nth-child(3) { animation-duration: 30s; }
@keyframes lv-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6%, -5%) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .lever__smoke i { animation: none; } }
.lever__grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* text on dark terracotta grounds */
.lever[data-bg="mesh"], .lever[data-bg="fumee"], .lever[data-bg="brume"] {
  --lv-ink: #fff8f2; --lv-soft: rgba(255, 248, 242, 0.82); --lv-mute: rgba(255, 248, 242, 0.64); --lv-line: rgba(255, 248, 242, 0.12);
  --lv-big: linear-gradient(#fffaf5 10%, #f6d6c4 55%, #e7a98a 100%);
  --lv-track: rgba(255, 248, 242, 0.22); --lv-fill: linear-gradient(90deg, #f6d6c4, #fff3ea);
  --lv-d1: #fffaf5; --lv-d2: #f2b89c; --lv-d3: #9a4a2c; --lv-hi: rgba(255, 255, 255, 0.10); --lv-glass: 12px;
}

/* 1 · Mesh terracotta: four terracottas melted together */
.lever[data-bg="mesh"] {
  --lv-card: rgba(255, 248, 242, 0.12);
  background:
    radial-gradient(60% 80% at 10% 10%, #e48a62 0%, transparent 60%),
    radial-gradient(55% 70% at 90% 20%, #a8442a 0%, transparent 60%),
    radial-gradient(70% 80% at 70% 100%, #d9845f 0%, transparent 60%),
    radial-gradient(60% 70% at 0% 100%, #8c3820 0%, transparent 60%),
    #c2552d;
}

/* 2 · Fumée profonde: brick ground, glowing terracotta smoke drifting, fine grain */
.lever[data-bg="fumee"] { --lv-card: rgba(255, 248, 242, 0.09); background: #8c3820; }
.lever[data-bg="fumee"] .lever__smoke { display: block; }
.lever[data-bg="fumee"] .lever__smoke i:nth-child(1) { left: 6%; top: 8%; width: 46%; height: 52%; background: #d2643a; opacity: .6; }
.lever[data-bg="fumee"] .lever__smoke i:nth-child(2) { left: 54%; top: 34%; width: 50%; height: 56%; background: #e48a62; opacity: .42; }
.lever[data-bg="fumee"] .lever__smoke i:nth-child(3) { left: 26%; top: 62%; width: 44%; height: 46%; background: #c2552d; opacity: .7; }
.lever[data-bg="fumee"] .lever__grain { opacity: .25; }

/* 3 · Aube: terracotta at the top fading to peach, like a desert sky */
.lever[data-bg="aube"] {
  --lv-card: rgba(255, 255, 255, 0.26); --lv-glass: 8px;
  --lv-big: linear-gradient(#fff8f2 10%, #fde3d5 60%, #f5c2a8 100%);
  background: linear-gradient(180deg, #c9603a 0%, #df9372 45%, #f3cdb8 100%);
}
.lever[data-bg="aube"] .lever__kicker { color: rgba(255, 248, 242, 0.78); }

/* 4 · Brume sur terracotta: the hero terracotta, veiled by a light mist */
.lever[data-bg="brume"] { --lv-card: rgba(255, 248, 242, 0.12); background: #c2552d; }
.lever[data-bg="brume"] .lever__smoke { display: block; }
.lever[data-bg="brume"] .lever__smoke i:nth-child(1) { left: 4%; top: 4%; width: 48%; height: 54%; background: #f2b293; opacity: .55; }
.lever[data-bg="brume"] .lever__smoke i:nth-child(2) { left: 56%; top: 18%; width: 52%; height: 58%; background: #e48a62; opacity: .5; }
.lever[data-bg="brume"] .lever__smoke i:nth-child(3) { left: 24%; top: 62%; width: 54%; height: 52%; background: #f7cdb7; opacity: .35; }
.lever__big { font-variant-numeric: tabular-nums; }

/* ───────────────────────── Closing CTA + footer — backpack.exchange/about/earn, values × 0.8 like #lever ───────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.fin { --page: #fffcf7; position: relative; display: grid; place-items: center; min-height: 0; padding: 360px 0 152px; background: var(--page); color: var(--ink-d); text-align: center; overflow: clip; }
/* ring of stock coins around the call to action (coin-orbit.js) */
.fin__orbit { position: absolute; inset: 0; pointer-events: none; }
.fin__orbit canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fin__wrap > * { transition: opacity .7s var(--ease), filter .7s var(--ease), transform .9s var(--ease-out); }
.fin.is-pending:not(.is-orbiting) .fin__wrap > *, .fin-wait .fin:not(.is-orbiting) .fin__wrap > * { opacity: 0; filter: blur(6px); transform: translateY(8px); }
.fin.is-orbiting .fin__wrap > :nth-child(1) { transition-delay: 1.5s; }
.fin.is-orbiting .fin__wrap > :nth-child(2) { transition-delay: 1.65s; }
.fin.is-orbiting .fin__wrap > :nth-child(3) { transition-delay: 1.8s; }
/* hover label over a coin of the ring */
.orbit-tip { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; display: flex; align-items: baseline; gap: 10px;
  padding: 11px 18px; margin: -64px 0 0 -40px; border-radius: 999px; background: #2b2b2b; color: #fff; white-space: nowrap;
  font-size: 19px; line-height: 1; opacity: 0; scale: .92; transition: opacity .2s ease, scale .25s cubic-bezier(.16, 1, .3, 1); }
.orbit-tip b { font-weight: 700; }
.orbit-tip span { font-weight: 500; color: rgba(255, 255, 255, .62); letter-spacing: .02em; }
.orbit-tip.is-on { opacity: 1; scale: 1; }
.fin__wrap { position: relative; max-width: 1152px; margin: 0 auto; padding: 0 64px; }
.fin h2 { max-width: 9.5em; margin: 0 auto; font-size: clamp(40px, 6.3vw, 96px); font-weight: 500; line-height: 1.0; letter-spacing: -0.045em; text-wrap: balance; }
.fin p { margin: 22px auto 0; max-width: 24em; font-size: 18px; line-height: 1.4; color: #6b5a4a; }
.fin__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9.6px; padding-top: 22.4px; }
.fbtn { display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 999px; font-weight: 500; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; transition: box-shadow .3s var(--ease), transform .3s var(--ease-out), background-color .3s var(--ease); }
.fbtn--dark { height: 38.4px; font-size: 12.8px; color: #fbf6ee; background: linear-gradient(#2b211a, #4a3a2e); box-shadow: 0 1px 2.8px rgba(43, 33, 26, 0.12); }
.fbtn--dark:hover { box-shadow: 0 6px 18px rgba(43, 33, 26, 0.22); transform: translateY(-1px); }
.fbtn--soft { height: 35.2px; font-size: 12px; color: var(--ink-d); background: rgba(43, 33, 26, 0.06); box-shadow: 0 1px 2.8px rgba(43, 33, 26, 0.04); }
.fbtn--soft:hover { background: rgba(43, 33, 26, 0.1); }
.fbtn:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

.foot {
  --f-bg: #2b211a; --f-head: #fbf6ee; --f-link: rgba(251, 246, 238, 0.82); --f-mute: rgba(251, 246, 238, 0.58);
  position: relative; margin-top: -32px; padding-top: 90px; overflow: clip;
  background: var(--f-bg); border-radius: 32px 32px 0 0;
}
.foot__wrap { padding: 0 1.4vw; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38.4px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25.6px 19.2px; align-content: start; }
.foot__col { display: flex; flex-direction: column; gap: 11.2px; font-size: 12px; line-height: 16.8px; }
.foot__col b { margin-bottom: 8px; font-weight: 600; color: var(--f-head); }
.foot__col a, .foot__legal a { color: var(--f-link); text-decoration: none; transition: color .2s; }
.foot__col a:hover, .foot__legal a:hover { color: var(--f-head); }
.foot a:focus-visible { outline: 2px solid var(--safran); outline-offset: 2px; border-radius: 3px; }
.foot__disc { display: flex; flex-direction: column; gap: 9.6px; font-size: 10.4px; line-height: 16.64px; color: var(--f-mute); }
.foot__disc p { margin: 0; }
.foot__legal { display: flex; flex-direction: column; gap: 9.6px; margin-top: 6.4px; }
.foot__legal div { display: flex; flex-wrap: wrap; gap: 6.4px 16px; }
/* giant wordmark, clipped at the bottom edge */
.foot__mark { margin-top: 72.8px; padding: 0 3.4vw; color: var(--terra); line-height: 0; }
.foot__mark svg { display: block; width: 100%; height: auto; }
.foot__mark text { font-family: var(--font); font-size: 372px; font-weight: 700; letter-spacing: -0.02em; fill: currentColor; }

@media (max-width: 900px) {
  .foot__grid { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .fin { min-height: 0; padding: 212px 0 132px; place-items: center; }
  .fin__wrap { padding: 0 16px; }
  .fin p { font-size: 16px; }
  .fbtn--dark { height: 44px; font-size: 15px; padding: 0 20px; }
  .fbtn--soft { height: 44px; font-size: 15px; padding: 0 20px; }
  .foot { padding-top: 64px; border-radius: 24px 24px 0 0; }
  .foot__wrap { padding: 0 16px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__col { font-size: 14px; line-height: 20px; }
  .foot__disc { font-size: 12px; line-height: 18px; }
  .foot__mark { margin-top: 48px; padding: 0 16px; }
}

/* footer: hero terracotta ground, white wordmark (chosen 2026-11-18) */
.foot { --f-bg: #c2552d; --f-head: #fff8f2; --f-link: rgba(255, 248, 242, 0.86); --f-mute: rgba(255, 248, 242, 0.66); }
.foot__mark { color: #ffffff; }

/* ───────────────────────── Leverage, pinned scroll (lever-roll.js) ─────────────────────────
   Four screens tall; the stage stays pinned while the figure turns 1x → 4x. The gradient is as tall as the whole
   section (Mastercard's method). Rounded corners on the whole block, so they only show when it enters and leaves.
   Layout: one fixed composition scaled to the screen. Desktop and landscape tablets use a 1512 x 806 frame
   (--u = 1 frame pixel), phones and portrait tablets a 390 x 844 frame, so the proportions are the same on every
   screen. All numbers below are frame pixels. */
.levroll { --band: min(2.665vw, 5vh); position: relative; height: calc(400vh + var(--band)); background: #fffcf7; }   /* cream around the corners, like the sections above and below */
.levroll__clip { height: 100%; padding-bottom: var(--band); box-sizing: border-box; border-radius: 32px; overflow: clip; background: #c6532b; }   /* band of end colour under the pinned stage */
.levroll__stage { --u: min(100cqw / 1512, 100cqh / 806); position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; container-type: size;
  color: #fff; background: linear-gradient(180deg, #84301f 0%, #923428 18%, #be5229 52%, #c6532b 75%, #c6532b 99.79%) 0 var(--bgp, 0%) / 100% 400% no-repeat; }   /* ends on the scrolled header colour */
.levroll__pill { --bw: calc(573.5 * var(--u)); --bh: calc(363 * var(--u));
  position: absolute; left: 50%; top: 50%; width: var(--bw); height: var(--bh); transform: translate(-50%, -50%);
  border-radius: 30% / 50%; background: #fff; overflow: hidden; perspective: var(--bh);
  box-shadow: 0 18px 50px -18px rgba(90, 30, 10, .45), inset 0 -6px 14px -10px rgba(120, 60, 30, .18); }
.levroll__pill::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(#fff, rgba(255,255,255,.2) 20.44%, rgba(255,255,255,0) 27.07%, rgba(255,255,255,0) 72.93%, rgba(255,255,255,.2) 79.56%, #fff); }
.levroll__pill span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: calc(var(--bh) * .647); font-weight: 600; letter-spacing: -0.035em; line-height: 1; color: #141413;
  font-variant-numeric: tabular-nums; transform-origin: 50% 50%; will-change: transform, opacity; }
.levroll__note { position: absolute; top: 50%; transform: translateY(-50%); overflow: hidden;
  font-size: max(13px, calc(26.9 * var(--u))); line-height: 1.22; font-weight: 600; color: #fff; }
.levroll__note > span { display: block; transition: transform .8s var(--ease-out); }
.levroll__note > span + span { position: absolute; left: 0; right: 0; top: 0; }
.levroll__note--l { left: calc(50% - 706 * var(--u)); width: calc(393 * var(--u)); }
.levroll__note--r { left: calc(50% + 369 * var(--u)); width: calc(363 * var(--u)); }
.levroll__down { position: absolute; left: 50%; top: calc(50% + 210.4 * var(--u)); transform: translateX(-50%);
  display: grid; place-items: center; width: max(28px, calc(52.9 * var(--u))); height: max(28px, calc(52.9 * var(--u))); border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .85); }
.levroll__down svg { width: 40%; height: 40%; }
/* phones and portrait tablets: notes above and below the pill, on a 390 x 844 frame */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .levroll { --band: min(10.33vw, 4.77vh); }
  .levroll__clip { border-radius: 28px; }
  .levroll__stage { --u: min(100cqw / 390, 100cqh / 844); }
  .levroll__pill { --bw: calc(300 * var(--u)); --bh: calc(190 * var(--u)); }
  .levroll__note { transform: none; text-align: center; font-size: calc(17 * var(--u)); left: calc(50% - 170 * var(--u)); width: calc(340 * var(--u)); }
  .levroll__note--l { top: auto; bottom: calc(50% + 131 * var(--u)); }
  .levroll__note--r { top: calc(50% + 131 * var(--u)); }
  .levroll__down { top: calc(50% + 232 * var(--u)); width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
}
@media (prefers-reduced-motion: reduce) { .levroll__note > span { transition: none; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
