/* BP x 2: the one shared design system. Owner: the page owner. Builders READ this file, never edit it.
   Language = version 1 (Seb Gamboa engine, outputs/sebg-reconstruction): cream paper, olive-deep 2px outlines,
   dithered offset shadows, lime buttons, speech bubbles, the pirate (one outfit). Plus the world: art plates. */
@font-face { font-family: "Roobert"; src: url("a/f/roobert-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("a/f/roobert-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --cream: #f6f3e9; --paper: #fbfaf6; --sand: #ece6d3; --sand-2: #e3dbc2;
  --ink: #151518; --muted: #4a4c44; --line: #e2dfd3;
  --lime: #c2f542; --lime-hover: #abd839; --lime-soft: #eef9d9; --lime-glow: rgba(194, 245, 66, .55);
  --olive: #445a00; --olive-deep: #2a3600; --night: #12160a; --night-2: #1c2210;
  --grey-1: #e9e6dc; --grey-2: #d6d3c7; --grey-3: #a9a69a;
  --li: #0a66c2; /* LinkedIn blue: only inside LinkedIn mock-ups */

  /* ONE type system: 4 sizes (+ mega for one giant number per section at most). About 20% above usual. */
  --fs-mega: clamp(76px, 12vw, 200px);
  --fs-d: clamp(46px, 6.2vw, 100px);   /* h1 only */
  --fs-t: clamp(34px, 3.9vw, 60px);    /* every h2 */
  --fs-b: 21px;                        /* body, h3, buttons */
  --fs-s: 17px;                        /* small: names, captions, notes */

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --dither: conic-gradient(var(--olive-deep) 25%, transparent 0 50%, var(--olive-deep) 0 75%, transparent 0) 0 0 / 4px 4px;
  --dither-lime: conic-gradient(var(--lime) 25%, transparent 0 50%, var(--lime) 0 75%, transparent 0) 0 0 / 4px 4px;
  --gut: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --sec-y: clamp(60px, 7vw, 104px);   /* vertical padding of a section */
  --r: 26px;                           /* panel radius */
  --r-s: 14px;
  --top-h: 92px;
}
@media (max-width: 600px) { :root { --fs-b: 19px; --fs-s: 16px; --top-h: 70px; --r: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-b)/1.5 "Roobert", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }

/* type: use ONLY these */
.mega { font-size: var(--fs-mega); font-weight: 600; line-height: .92; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.d { font-size: var(--fs-d); font-weight: 600; line-height: 1.0; letter-spacing: -.038em; text-wrap: balance; }
.t { font-size: var(--fs-t); font-weight: 600; line-height: 1.06; letter-spacing: -.028em; text-wrap: balance; }
.b { font-size: var(--fs-b); line-height: 1.5; }
.s { font-size: var(--fs-s); line-height: 1.45; }
.w6 { font-weight: 600; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* sections: one rhythm for the whole page */
.sec { position: relative; padding: var(--sec-y) 0; isolation: isolate; }
.sec--paper { background: var(--paper); }
.sec--cream { background: var(--cream); }
.sec--sand { background: var(--sand); }
.sec--night { background: var(--cream); color: var(--ink); } /* no dark colours ever (Essam): kept only as a light fallback */
.sec--night .muted { color: var(--muted); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec__head .b { color: var(--muted); max-width: 40ch; }
.sec--night .sec__head .b { color: var(--muted); }
@media (max-width: 900px) { .sec__head { grid-template-columns: 1fr; } }

/* art plates: generated scene art (a/w/*.webp), never code drawings. Put on a .plate wrapper with data-depth for parallax. */
.plate { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.plate img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.plate--fade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--fade-from, rgba(251,250,246,0)) 0%, var(--fade-to, var(--paper)) 100%); }

/* Seb dither + outline panel */
.dither { background: var(--dither); }
.panel { --face: var(--paper); position: relative; border-radius: var(--r); background: transparent; isolation: isolate; }
.panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--dither); translate: 8px 8px; z-index: -2; }
.panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--face); box-shadow: inset 0 0 0 2px var(--olive-deep); z-index: -1; pointer-events: none; }

/* buttons (Seb: face on ::after, dithered shadow on ::before, lift on hover). Every .btn is magnetic on desktop (core.js). */
.btn { --bg: var(--lime); position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer; background: transparent; color: var(--ink); text-decoration: none; font-size: var(--fs-b); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: color 180ms ease, translate 250ms var(--spring); -webkit-tap-highlight-color: transparent; }
.btn::before, .btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transition: translate 250ms var(--spring), background-color 180ms ease; }
.btn::before { z-index: -2; background: var(--dither); translate: 4px 4px; }
.btn::after { z-index: -1; background: var(--bg); box-shadow: inset 0 0 0 2px var(--olive-deep); }
.btn--ghost { --bg: var(--paper); }
.btn--small { min-height: 48px; padding: 0 22px; font-size: var(--fs-s); }
.btn--onDark::before { background: var(--dither); }
.btn svg { width: 18px; height: 18px; transition: translate 350ms var(--spring); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --bg: var(--lime-hover); translate: -2px -2px; }
  .btn--ghost:hover { --bg: var(--ink); color: var(--paper); }
  .btn:hover::before { translate: 6px 6px; }
  .btn:hover svg { translate: 4px 0; }
}
.btn:active { translate: 1px 1px; }
.btn:active::before { translate: 2px 2px; }
@media (max-width: 600px) { .btn { min-height: 56px; padding: 0 24px; } }

/* the one call to action after every proof block */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(40px, 5vw, 64px); }
.cta-row .s { color: var(--muted); }

@media (max-width: 600px) { .cta-row .btn { width: 100%; } }

.link { font-weight: 600; color: var(--olive); text-underline-offset: 4px; text-decoration-thickness: 2px; transition: color 160ms ease; }
.link:hover { color: var(--ink); }



/* Seb speech bubble (for the pirate) */
.bubble { position: absolute; width: max-content; max-width: 240px; color: var(--ink); isolation: isolate; padding: 14px 18px 16px; font-size: var(--fs-s); font-weight: 600; line-height: 1.35; }
.bubble::before, .bubble::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.bubble::before { z-index: -2; translate: 6px 6px; background: var(--dither); }
.bubble::after { z-index: -1; background: var(--paper); box-shadow: inset 0 0 0 2px var(--olive-deep); }
.bubble__tail { position: absolute; top: calc(100% - 2px); left: var(--tail-x, 62%); z-index: -1; width: 24px; height: 16px; translate: -50% 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background: var(--olive-deep); }
.bubble__tail--shadow { z-index: -2; translate: calc(-50% + 6px) 6px; background: var(--dither); }

/* the pirate: a .pirate-slot holds one pose. On wide desktops core.js hides the slot images and one
   travelling pirate glides from slot to slot as the visitor scrolls. Slots sit at a section edge, never on words. */
.pirate-slot { position: relative; pointer-events: none; }
.pirate-slot > img { width: auto; height: 100%; max-width: none; filter: drop-shadow(0 26px 22px rgba(42, 54, 0, .28)); }
.pirate-slot::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 70%; height: 16px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(42, 54, 0, .32), transparent); z-index: -1; }
.pirate-slot[data-flip] > img { scale: -1 1; }
html.travel .pirate-slot > img, html.travel .pirate-slot::after { visibility: hidden; }
.traveler { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; transform-origin: 50% 100%; will-change: transform; filter: drop-shadow(0 26px 22px rgba(42, 54, 0, .28)); display: none; }
html.travel .traveler { display: block; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top-h); transition: background-color 300ms ease, box-shadow 300ms ease, translate 400ms var(--ease); }
.top.is-solid { background: rgba(251, 250, 246, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(42, 54, 0, .18); }
.top.is-hidden { translate: 0 -100%; }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.logo { display: block; flex: none; }
.logo img { width: 172px; height: auto; }
.top__nav { display: flex; align-items: center; gap: 30px; }
.top__link { font-size: var(--fs-s); font-weight: 600; text-decoration: none; padding: 6px 0; background: linear-gradient(var(--olive), var(--olive)) 0 100% / 0 2px no-repeat; transition: background-size 260ms var(--ease); }
.top__link:hover { background-size: 100% 2px; }
.top__short { display: none; }
@media (max-width: 1100px) { .top__link { display: none; } }
@media (max-width: 600px) { .logo img { width: 132px; } .top__long { display: none; } .top__short { display: inline; } }

/* sticky claim bar: phones always after the hero; desktop as a small pill bottom-right */
.sticky { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(251, 250, 246, .94); color: var(--olive-deep); box-shadow: inset 0 0 0 2px var(--olive-deep), 0 18px 40px -18px rgba(42, 54, 0, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); translate: 0 140%; transition: translate 500ms var(--ease); }
.sticky.is-on { translate: 0 0; }
.sticky .s { font-weight: 600; }
.sticky .btn { min-height: 50px; padding: 0 20px; font-size: var(--fs-s); }
.sticky .btn::before { background: var(--dither); }
@media (min-width: 901px) { .sticky { left: auto; right: 24px; bottom: 24px; padding-left: 22px; } }

/* custom cursor (desktop, fine pointer only) */
.cur { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; opacity: 0; }
html.has-cur .cur { display: block; }
.cur__dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--olive-deep); transition: scale 200ms var(--ease), opacity 200ms; }
.cur__ring { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--olive-deep); display: grid; place-items: center; transition: width 300ms var(--spring), height 300ms var(--spring), margin 300ms var(--spring), background-color 200ms; }
.cur__lab { font-size: 14px; font-weight: 600; color: var(--olive-deep); opacity: 0; transition: opacity 150ms; white-space: nowrap; }
.cur.is-label .cur__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--lime); }
.cur.is-label .cur__lab { opacity: 1; }
.cur.is-label .cur__dot, .cur.is-link .cur__dot { scale: 0; }
.cur.is-link .cur__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(194, 245, 66, .35); }
.cur.on-dark .cur__dot { background: var(--lime); }
.cur.on-dark .cur__ring { box-shadow: inset 0 0 0 2px var(--lime); }

/* loader: the pirate face, once per visit, under 1.2 s */
.ldr { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--cream); }
.ldr img { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--lime); }
html.no-ldr .ldr { display: none; }

/* screenshot lightbox */
.lb { border: 0; padding: 16px; border-radius: 20px; background: var(--paper); max-width: min(92vw, 860px); max-height: 92svh; box-shadow: 0 30px 80px -20px rgba(18, 22, 10, .5); }
.lb::backdrop { background: rgba(18, 22, 10, .62); }
.lb[open] { animation: lb-in 260ms var(--ease); }
@keyframes lb-in { from { opacity: 0; scale: .96; } }
.lb__img { width: 100%; height: auto; max-height: calc(92svh - 120px); object-fit: contain; border-radius: 10px; }
.lb__cap { margin-top: 12px; padding-right: 56px; font-size: var(--fs-s); }
.lb__x { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font-size: 26px; line-height: 1; cursor: pointer; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 99; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* section joins (added by the page join): a slow wave in the next section's colour */
.join { position: relative; height: 0; z-index: 4; pointer-events: none; overflow-x: clip; }
.join svg { position: absolute; left: 0; bottom: -1px; width: 200%; max-width: none; height: clamp(28px, 3.4vw, 54px); animation: join-drift 26s linear infinite; }
.join--paper svg { fill: var(--paper); } .join--cream svg { fill: var(--cream); } .join--sand svg { fill: var(--sand); } .join--night svg { fill: var(--cream); }
@keyframes join-drift { to { translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .join svg { animation: none; } }
