/* benevents agency — client pages: a presentation behind an access code.
   Builds on style.css (colours, type, buttons, the drawn "benevents agency" wordmark). */

.cpage { min-height: 100vh; min-height: 100svh; }
.cpage main { display: flow-root; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Top bar ---------- */
.cbar {
  position: absolute; top: 22px; left: 22px; right: 22px; z-index: 30; max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 24px; border-radius: 99px; border: 1px solid transparent;
  transition: background .5s, border-color .5s;
}
.is-open .cbar { background: rgba(14, 14, 17, .68); border-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.cbar__home { display: block; }
.cbar .lang span { display: none; }
.cbar__side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cbar .deck__tools { display: none; }
.is-open .cbar .deck__tools { display: flex; }

/* ---------- The two logos together ---------- */
.lockup { display: inline-flex; align-items: center; gap: .5em; font-size: clamp(34px, 5.6vw, 66px); color: #fff; }
.lockup .brand { font-size: 1em; }
.lockup__x { position: relative; flex: none; width: .4em; height: .4em; color: rgba(255, 255, 255, .62); }
.lockup__x::before, .lockup__x::after { content: ""; position: absolute; left: calc(50% - .75px); top: -18%; width: 1.5px; height: 136%; border-radius: 2px; background: currentColor; }
.lockup__x::before { transform: rotate(45deg); }
.lockup__x::after { transform: rotate(-45deg); }
.lockup__m { position: relative; display: block; flex: none; width: 1.62em; height: 1.62em; }
.mmark { display: block; width: 100%; height: 100%; overflow: visible; }
.mmark__frame, .mmark__m { fill: #ff5c35; }
.mmark__draw, .mmark__run { fill: none; stroke-width: 0; }
.mword { display: block; height: 1.02em; width: auto; aspect-ratio: 281 / 26; fill: #ff5c35; }

.lockup--sm { font-size: 24px; gap: .56em; }
.cbar .lockup__x, .cbar .lockup__m { display: none; }
.is-open .cbar .lockup__x, .is-open .cbar .lockup__m { display: block; }

/* ---------- Gate ---------- */
.gate {
  position: relative; isolation: isolate; overflow: hidden; margin: var(--gap); border-radius: var(--r);
  min-height: calc(100vh - 2 * var(--gap)); min-height: calc(100svh - 2 * var(--gap));
  display: grid; place-items: center; padding: 112px var(--pad) 54px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: opacity .5s, transform .8s var(--ease);
}
.is-leaving .gate { opacity: 0; transform: scale(.985); }
.is-restoring .gate { visibility: hidden; }
.gate__aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.gate__aura i { position: absolute; width: 76vmax; height: 76vmax; border-radius: 50%; }
.gate__aura i:first-child { left: -34vmax; top: -40vmax; background: radial-gradient(closest-side, rgba(0, 173, 176, .32), rgba(233, 75, 91, .13) 58%, transparent); animation: drift 18s ease-in-out infinite alternate; }
.gate__aura i:last-child { right: -34vmax; bottom: -42vmax; background: radial-gradient(closest-side, rgba(255, 92, 53, .36), rgba(44, 32, 81, .55) 58%, transparent); animation: drift 22s ease-in-out infinite alternate-reverse; }
.gate__in { width: 100%; max-width: 980px; }
.gate .lockup { display: flex; width: fit-content; margin: 0 auto clamp(30px, 5vh, 54px); }
.gate .lockup__m::before { content: ""; position: absolute; inset: -42%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 92, 53, .42), transparent); }
.gate__eyebrow { margin-bottom: 22px; }
.gate__title { font-family: var(--display); font-weight: 500; letter-spacing: -.036em; line-height: .94; font-size: clamp(46px, 8.6vw, 128px); margin-bottom: clamp(18px, 2.6vh, 28px); }
.gate__title .line { display: block; overflow: hidden; padding: .04em .08em .16em; margin-bottom: -.16em; }
.gate__title .line > span { display: block; }
.gate__title em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; padding: 0 .1em;
  background: var(--grad-loop); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 12s linear infinite;
}
.gate__for { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: clamp(26px, 4vh, 40px); color: rgba(246, 245, 241, .78); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.4; }
.gate__form { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; max-width: 580px; margin: 0 auto; }
.gate__field { position: relative; display: block; flex: 1 1 250px; }
.gate__field input {
  width: 100%; height: 58px; padding: 0 56px 0 26px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
  color: var(--text); font: 500 17px/1 var(--sans); letter-spacing: .03em; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.gate__field input::placeholder { color: rgba(161, 161, 171, .8); letter-spacing: 0; font-weight: 400; }
.gate__field input:focus { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 5px rgba(255, 255, 255, .06); }
.gate__eye { position: absolute; right: 7px; top: 7px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--mute); transition: color .3s, background .3s; }
.gate__eye:hover, .gate__eye[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, .08); }
.gate__eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gate__go { height: 58px; }
.gate__form.is-busy .gate__go { opacity: .65; pointer-events: none; }
.gate__form.is-wrong { animation: nope .5s var(--ease); }
.gate__form.is-wrong input { border-color: #ff8f8f; }
@keyframes nope { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.gate__note { min-height: 1.5em; margin-top: 16px; font-size: 14.5px; line-height: 1.5; color: var(--c4); }
.gate__note.is-error { color: #ff8f8f; }
.gate__help { margin-top: 6px; font-size: 14px; color: var(--mute); }
.gate__help a { color: var(--text); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }

/* the entrance: our wordmark, the cross, then their mark drawing itself */
@media (prefers-reduced-motion: no-preference) {
  .gate .lockup__ben .brand__w { animation: rise 1.1s var(--ease) .15s both; }
  .gate .lockup__ben .brand__bar i { transform-origin: left; animation: growx .7s var(--ease) both; }
  .gate .lockup__ben .brand__bar i:nth-child(1) { animation-delay: .4s; } .gate .lockup__ben .brand__bar i:nth-child(2) { animation-delay: .55s; }
  .gate .lockup__ben .brand__bar i:nth-child(3) { animation-delay: .7s; } .gate .lockup__ben .brand__bar i:nth-child(4) { animation-delay: .85s; }
  .gate .lockup__ben .brand__a { animation: rise 1s var(--ease) .95s both; }
  .gate .lockup__x::before { animation: cross-a .8s var(--ease) 1s both; }
  .gate .lockup__x::after { animation: cross-b .8s var(--ease) 1.12s both; }
  .gate .mmark__draw { stroke: #ff5c35; stroke-width: .89; stroke-dasharray: 100; stroke-dashoffset: 100; animation: m-draw 1.3s var(--ease-io) 1.15s forwards, m-out .2s linear 2.6s forwards; }
  .gate .mmark__frame { opacity: 0; animation: m-in .2s linear 2.42s forwards; }
  .gate .mmark__m { opacity: 0; transform-box: fill-box; transform-origin: center; animation: m-pop .95s var(--ease) 1.8s forwards; }
  .gate .mmark__run { stroke: #fff; stroke-width: 1.15; stroke-linecap: round; stroke-dasharray: 7 93; opacity: 0; animation: m-run 5s linear 3.1s infinite; }
  .gate .lockup__m::before { opacity: 0; animation: m-glow 1.8s ease-out 1.7s forwards, m-breathe 5s ease-in-out 3.5s infinite alternate; }
  .gate__eyebrow { animation: rise 1s var(--ease) .55s both; }
  .gate__title .line > span { animation: line-up 1.25s var(--ease) both; }
  .gate__title .line:nth-child(1) > span { animation-delay: .65s; }
  .gate__title .line:nth-child(2) > span { animation-delay: .78s; }
  .gate__for { animation: rise 1s var(--ease) 1.05s both; }
  .gate__form { animation: rise 1s var(--ease) 1.2s both; }
  .gate__form.is-wrong { animation: nope .5s var(--ease); }
  .gate__help { animation: rise 1s var(--ease) 1.35s both; }
}
@keyframes cross-a { from { transform: rotate(-45deg) scaleY(0); opacity: 0; } }
@keyframes cross-b { from { transform: rotate(45deg) scaleY(0); opacity: 0; } }
@keyframes m-draw { to { stroke-dashoffset: 0; } }
@keyframes m-in { to { opacity: 1; } }
@keyframes m-out { to { opacity: 0; } }
@keyframes m-pop { from { opacity: 0; transform: translateY(20%) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes m-run { 0% { stroke-dashoffset: 0; opacity: 0; } 6% { opacity: .95; } 58% { opacity: .95; } 66%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes m-glow { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes m-breathe { to { transform: scale(1.14); opacity: .7; } }
@keyframes line-up { from { transform: translateY(118%); } }

/* ---------- Presentation ---------- */
.deck { padding: 108px var(--gap) var(--gap); }
.deck.is-in .deck__stage, .deck.is-in .deck__foot { animation: rise 1s var(--ease) both; }
.deck.is-in .deck__foot { animation-delay: .12s; }
.deck__tools { display: flex; align-items: center; gap: 8px; }
.deck__count { display: flex; align-items: baseline; gap: 6px; margin: 0 8px 0 6px; font-size: 14px; font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--mute); }
.deck__count b { color: var(--text); font-weight: 600; }
.deck__count i { font-style: normal; opacity: .6; }
.tool { width: 46px; height: 46px; flex: none; border-radius: 99px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); transition: background .3s, color .3s, opacity .3s; }
.tool:hover, .tool[aria-pressed="true"] { background: var(--text); color: #0a0a0a; }
.tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool--text { width: auto; padding: 0 18px 0 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.tool.is-busy { opacity: .55; pointer-events: none; }
.tool.is-busy svg { animation: bob .8s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(3px); } }

.deck__stage { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.4vw, 22px); padding: 0 clamp(4px, 1vw, 16px); }
.deck__frame {
  position: relative; isolation: isolate; flex: 0 1 calc((100vh - 206px) * 1.7778); flex-basis: calc((100svh - 206px) * 1.7778); min-width: 0; max-width: 1640px; aspect-ratio: 16 / 9;
  border-radius: 2.16% / 3.83%; overflow: hidden; background: #0e0e0e; box-shadow: 0 40px 120px -34px rgba(0, 0, 0, .9);
  cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; touch-action: pan-y pinch-zoom; --dir: 1;
}
.deck__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.deck__img.is-enter { opacity: 0; transform: translate3d(calc(var(--dir) * 2.5%), 0, 0) scale(1.015); }
.deck__img.is-cur { z-index: 1; opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .85s var(--ease); }
.deck__img.is-leave { opacity: 0; transform: translate3d(calc(var(--dir) * -2%), 0, 0); transition: opacity .45s, transform .7s var(--ease); }
.deck__links { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.deck__links a { position: absolute; pointer-events: auto; border-radius: 8px; margin: -1% -.6%; padding: 1% .6%; box-sizing: content-box; transition: background .3s, box-shadow .3s; }
.deck__links a:hover, .deck__links a:focus-visible { background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .45); outline: none; }
.deck__load { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%) 0 0 / 200% 100%; transition: opacity .3s; }
.deck__frame.is-loading .deck__load { opacity: 1; animation: sheen 1.3s linear infinite; }
.deck__nav { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); transition: background .3s, color .3s, opacity .4s, transform .5s var(--ease); }
.deck__nav:hover { background: var(--text); color: #0a0a0a; }
.deck__nav--prev:hover { transform: translateX(-3px); }
.deck__nav--next:hover { transform: translateX(3px); }
.deck__nav[disabled] { opacity: .28; pointer-events: none; }
.deck__nav svg, .deck__exit svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.deck__exit, .deck__badge { display: none; position: absolute; z-index: 6; transition: opacity .4s; }
.deck__exit { right: 14px; top: 14px; width: 46px; height: 46px; border-radius: 50%; place-items: center; background: rgba(14, 14, 17, .6); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.deck__badge { left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; background: rgba(14, 14, 17, .6); border: 1px solid rgba(255, 255, 255, .16); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; pointer-events: none; }

/* full screen (and the same look on phones that cannot do real full screen) */
.deck__stage.is-full { background: #000; padding: 0; gap: 0; }
.deck__stage.is-immersive { position: fixed; inset: 0; z-index: 150; }
.is-full .deck__frame { flex-basis: calc(100vh * 1.7778); flex-basis: calc(100dvh * 1.7778); max-width: 100vw; box-shadow: none; border-radius: 0; }
.is-full .deck__nav { position: absolute; z-index: 5; top: calc(50% - 27px); background: rgba(14, 14, 17, .55); border-color: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.is-full .deck__nav--prev { left: 16px; }
.is-full .deck__nav--next { right: 16px; }
.is-full .deck__exit { display: grid; position: fixed; }
.is-full .deck__badge { display: block; position: fixed; }
.deck__stage::after { display: none; content: attr(data-rotate); position: fixed; left: 0; right: 0; top: calc(50% + 28.125vw + 22px); text-align: center; font-size: 13.5px; color: var(--mute); pointer-events: none; }
.is-full.is-idle .deck__nav, .is-full.is-idle .deck__exit, .is-full.is-idle .deck__badge { opacity: 0; }
.is-full.is-idle { cursor: none; }

.deck__foot { max-width: 1100px; margin: 18px auto 0; padding: 0 16px; text-align: center; }
.deck__dots { display: flex; gap: 5px; }
.deck__dots button { position: relative; flex: 1; height: 24px; min-width: 0; }
.deck__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); transition: background .3s, transform .4s var(--ease); }
.deck__dots button.is-done::before { background: rgba(255, 255, 255, .46); }
.deck__dots button:hover::before { background: rgba(255, 255, 255, .7); transform: scaleY(1.7); }
.deck__dots button[aria-current="true"]::before { background: var(--grad); transform: scaleY(1.7); }
.deck__hint { margin-top: 10px; font-size: 13px; color: var(--mute); }
.deck__hint-touch { display: none; }
@media (hover: none) { .deck__hint-keys { display: none; } .deck__hint-touch { display: inline; } }
.deck__try { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 18px 10px 20px; border-radius: 99px; border: 1px solid rgba(216, 176, 106, .5); background: rgba(216, 176, 106, .1); color: #f1d9a8; font-size: 14px; font-weight: 600; transition: background .3s, color .3s, transform .5s var(--ease); }
.deck__try[hidden] { display: none; }
.deck__try--in { position: absolute; z-index: 4; right: 2.6%; bottom: 4.6%; margin: 0; background: rgba(20, 17, 14, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.deck__try--out { display: none; }
.is-full .deck__try--in { display: none; }
.deck__try i { width: 22px; height: 22px; border-radius: 50%; background: #f1d9a8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat; }
.deck__try:hover { background: #f1d9a8; color: #0a0a0a; transform: translateX(2px); }
/* an open presentation (presentation.html): the way to send its link, under the slide */
.deck__share { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 22px 11px 18px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); font-size: 14.5px; font-weight: 600; transition: background .3s, color .3s, transform .5s var(--ease); }
.deck__share svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.deck__share:hover, .deck__share:focus-visible { background: var(--text); color: #0a0a0a; transform: translateY(-2px); }
.cpage--open .deck__frame { flex-basis: calc((100vh - 296px) * 1.7778); flex-basis: calc((100svh - 296px) * 1.7778); }      /* room for that button, and what it answers, under the slide */
.cpage__nojs { padding: 180px 24px; text-align: center; color: var(--mute); }
.deck__note { min-height: 1.5em; margin-top: 6px; font-size: 14px; color: var(--c4); }
.deck__note.is-error { color: #ff8f8f; }

/* every slide at a glance */
.deck__grid { position: fixed; inset: 0; z-index: 140; overflow: hidden auto; overscroll-behavior: contain; padding: clamp(78px, 10vh, 116px) var(--pad) 44px; background: rgba(6, 6, 8, .95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: m-in .35s both; }
.deck__grid-in { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; max-width: 1560px; margin: 0 auto; }
.deck__grid-x { position: fixed; z-index: 2; right: clamp(14px, 3vw, 40px); top: clamp(14px, 3vw, 30px); }
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--card) var(--thumbs, none) 0 0 / 600% 300% no-repeat; outline-offset: 3px; transition: transform .5s var(--ease), border-color .3s; }
.thumb:hover, .thumb:focus-visible { transform: translateY(-4px); border-color: rgba(255, 255, 255, .55); }
.thumb[aria-current="true"] { outline: 2px solid var(--c1); }
.thumb span { position: absolute; left: 8px; top: 8px; min-width: 30px; padding: 3px 8px; border-radius: 99px; background: rgba(14, 14, 17, .7); border: 1px solid rgba(255, 255, 255, .16); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

.deck__cta { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; max-width: 1180px; margin: clamp(54px, 8vw, 110px) auto clamp(20px, 3vw, 40px); padding: clamp(28px, 4.4vw, 60px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.deck__cta::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(46% 80% at 0% 100%, rgba(0, 173, 176, .26), transparent 70%), radial-gradient(40% 80% at 100% 0%, rgba(255, 92, 53, .24), transparent 70%); }
.deck__cta .eyebrow { margin-bottom: 18px; }
.deck__cta-title { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(30px, 4vw, 62px); max-width: 14ch; text-wrap: balance; }

/* ---------- A slide that is alive: a first name in Chinese calligraphy ----------
   The same content in two layouts. "slide": a 1856 x 1044 canvas scaled to the frame, drawn
   like every other slide. "tall": a column that grows with its content, for narrow screens. */
.deck__frame.is-live { cursor: auto; }
.deck__frame.is-live .deck__links { display: none; }
.deck__frame.is-tall { aspect-ratio: auto; border-radius: 22px; touch-action: auto; }
.deck__frame.is-tall .deck__img { display: none; }
.is-full .deck__frame.is-tall { align-self: stretch; max-height: 100vh; max-height: 100dvh; overflow: hidden auto; overscroll-behavior: contain; border-radius: 0; }
/* in full screen the arrows move next to the page count, clear of the fields */
.is-full.has-live .deck__nav { top: auto; bottom: 6px; width: 40px; height: 40px; }
.is-full.has-live .deck__nav--prev { left: calc(50% - 112px); }
.is-full.has-live .deck__nav--next { right: calc(50% - 112px); }

.calli { --red: #c84c48; --gold: #d8b06a; position: absolute; inset: 0; z-index: 4; overflow: hidden; background: #0e0e0e; color: var(--text); text-align: left; animation: calli-in .5s; transition: opacity .45s; }
.calli[hidden] { display: none; }
.calli.is-leaving { pointer-events: none; }     /* the presentation has moved on: it waits for the next slide, then fades into it */
.calli.is-out { opacity: 0; }
.calli::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(200, 76, 72, .2), rgba(14, 14, 14, 0) 46%, rgba(216, 176, 106, .16)); }
@keyframes calli-in { from { opacity: 0; } }
.calli__canvas { position: relative; }
.calli__title { font-family: var(--display); font-weight: 500; letter-spacing: -.03em; line-height: 1.04; }
.calli__title span, .calli__title em { display: block; white-space: nowrap; }
.calli__title em { width: fit-content; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.012em; padding: .03em .14em .06em 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calli__cap { display: flex; align-items: center; color: rgba(246, 245, 241, .88); }
.calli__cap b { flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 600; color: #0e0e0e; background: var(--c1); }
.calli__step[data-step="2"] .calli__cap b { background: var(--c2); color: #fff; }
.calli__step[data-step="3"] .calli__cap b { background: var(--c3); color: #fff; }
.calli__cap, .calli__shop { transition: opacity .5s; }
.calli__step.is-off .calli__cap, .calli__step.is-off .calli__shop { opacity: .5; }
.calli__form, .calli__mail, .calli__actions { display: flex; }
.calli__field { position: relative; display: block; flex: 1 1 auto; min-width: 0; }
.calli__field input {
  width: 100%; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
  color: var(--text); font-family: var(--sans); font-weight: 500; line-height: 1; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .3s, background .3s, box-shadow .3s;
}
.calli__field input::placeholder { color: rgba(161, 161, 171, .8); font-weight: 400; }
.calli__field input:focus { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 5px rgba(255, 255, 255, .06); }
.calli .btn { flex: none; }
.calli .btn[disabled] { opacity: .34; pointer-events: none; }
.calli__note, .calli__mnote, .calli__anote { color: var(--mute); }
.calli__note:empty, .calli__mnote:empty, .calli__anote:empty { display: none; }
.calli__note.is-error, .calli__mnote.is-error { color: #ff8f8f; }
.calli__mnote.is-done, .calli__anote.is-done { color: #9be3c7; }
.calli__result[hidden] { display: none; }
.calli__han { flex: none; color: var(--text); }
.calli__line { display: flex; align-items: center; height: min(calc(var(--h) / var(--rows, 1)), calc(var(--w) / var(--n, 2))); }
.calli__char { display: block; height: 100%; min-width: 0; }
.calli__char svg { display: block; height: 100%; width: auto; fill: currentColor; overflow: visible; }
.calli__result.is-in .calli__char { animation: ink 1.05s var(--ease) both; animation-delay: calc(var(--i) * 240ms + 60ms); }
.calli__result.is-still .calli__char { animation: none; }
@keyframes ink { from { clip-path: inset(0 0 100% 0); opacity: 0; transform: translateY(-5%) scale(1.05); filter: blur(4px); } to { clip-path: inset(-10% -10% -10% -10%); opacity: 1; transform: none; filter: blur(0); } }
.calli__pinyin { font-family: var(--serif); font-style: italic; line-height: 1.15; color: var(--gold); }
.calli__under, .calli__meta, .calli__alts { display: flex; align-items: center; }
.calli__chip { flex: none; border-radius: 99px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: #9be3c7; border: 1px solid rgba(93, 190, 163, .5); background: rgba(93, 190, 163, .1); }
.calli__chip.is-proposal { color: #f3cf8a; border-color: rgba(249, 178, 78, .5); background: rgba(249, 178, 78, .1); }
.calli__chipnote { color: var(--mute); }
.calli__alts { color: var(--mute); white-space: nowrap; }
.calli__alts:empty { display: none; }
.calli__alts button { display: inline-flex; align-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); transition: background .3s, color .3s, border-color .3s; }
.calli__alts button svg { display: block; width: auto; fill: currentColor; }
.calli__alts button:hover { border-color: rgba(255, 255, 255, .5); }
.calli__alts button[aria-pressed="true"] { background: var(--text); color: #0a0a0a; border-color: transparent; }
.calli__consent, .calli__shop { display: flex; align-items: flex-start; color: rgba(246, 245, 241, .8); cursor: pointer; }
.calli__shop { color: var(--mute); }
.calli__consent input, .calli__shop input { flex: none; margin: 0; accent-color: var(--gold); cursor: pointer; }
.calli__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.calli__paper { aspect-ratio: 1 / 3; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .6)); transition: transform .8s var(--ease); }
.calli__stage:hover .calli__paper { transform: rotate(-1.4deg) scale(1.012); }
.calli__svg { display: block; width: 100%; height: 100%; border-radius: 3px; }
.calli__svg .ink { animation: calli-in .7s .1s both; }
.calli__specs { color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calli__leads { display: flex; flex-direction: column; min-width: 0; border: 1px solid rgba(216, 176, 106, .45); background: rgba(216, 176, 106, .08); }
.calli__side { font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.calli__leadtitle { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
.calli__leadtext { line-height: 1.4; color: rgba(246, 245, 241, .84); }
.calli__list { flex: 1 1 auto; min-height: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: rgba(8, 8, 10, .5); }
.calli__listhead { display: flex; align-items: center; justify-content: space-between; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.calli__count { display: grid; place-items: center; border-radius: 99px; background: var(--gold); color: #17130c; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.calli__rows { list-style: none; margin: 0; padding: 0; }
.calli__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .08); animation: lead-in .9s var(--ease) both; }
.calli__rows li:last-child { border-bottom: 0; }
@keyframes lead-in { from { opacity: 0; transform: translateY(-14px); background: rgba(216, 176, 106, .22); } }
.calli__rows b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calli__rows b svg { display: inline-block; vertical-align: -.16em; width: auto; fill: currentColor; opacity: .86; }
.calli__rows span { grid-column: 1; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calli__rows i { grid-column: 2; grid-row: 1 / 3; font-style: normal; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; border-radius: 99px; color: #9be3c7; border: 1px solid rgba(93, 190, 163, .5); background: rgba(93, 190, 163, .1); }
.calli__rows i.is-no { color: var(--mute); border-color: rgba(255, 255, 255, .16); background: none; }
.calli__none { color: var(--mute); }
.calli__none[hidden] { display: none; }
.calli__csv { align-self: flex-start; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); font-weight: 600; white-space: nowrap; transition: background .3s, color .3s, opacity .3s; }
.calli__csv:hover { background: var(--text); color: #0a0a0a; }
.calli__csv[disabled] { opacity: .36; pointer-events: none; }
.calli__demo { line-height: 1.4; color: var(--mute); }

/* -- as a slide: every size is in pixels of the 1856 x 1044 canvas */
.calli[data-skin="slide"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255, 255, 255, .13); border-radius: 2.16% / 3.83%; }
.calli[data-skin="slide"] .calli__canvas {
  position: absolute; left: 0; top: 0; width: 1856px; height: 1044px; transform-origin: 0 0; transform: scale(var(--k, 1));
  display: grid; grid-template-columns: 748px 300px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 58px; padding: 132px 72px 44px;
}
.calli[data-skin="slide"] .calli__top { position: absolute; left: 72px; right: 72px; top: 44px; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.calli[data-skin="slide"] .brand { font-size: 37px; }
.calli[data-skin="slide"] .calli__page { display: flex; align-items: center; gap: 14px; width: 100px; height: 48px; padding-left: 20px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 24px; background: rgba(14, 14, 14, .6); font-size: 24px; font-weight: 600; }
.calli[data-skin="slide"] .calli__page i { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #f9b24e, #e94b5b 50%, #00adb0); }
.calli[data-skin="slide"] .calli__title { grid-column: 1; grid-row: 1; font-size: 58px; margin-bottom: 26px; }
.calli[data-skin="slide"] .calli__title em { font-size: 68px; }
.calli[data-skin="slide"] .calli__step { grid-column: 1; margin-bottom: 22px; }
.calli[data-skin="slide"] .calli__cap { gap: 14px; margin-bottom: 12px; font-size: 25px; line-height: 34px; }
.calli[data-skin="slide"] .calli__cap b { width: 34px; height: 34px; font-size: 18px; }
.calli[data-skin="slide"] .calli__form, .calli[data-skin="slide"] .calli__mail, .calli[data-skin="slide"] .calli__actions { gap: 14px; }
.calli[data-skin="slide"] .calli__field input { height: 76px; padding: 0 34px; font-size: 31px; }
.calli[data-skin="slide"] .btn { height: 76px; padding: 0 34px; font-size: 25px; }
.calli[data-skin="slide"] .btn span::after { margin-left: 14px; }
.calli[data-skin="slide"] .calli__note, .calli[data-skin="slide"] .calli__mnote, .calli[data-skin="slide"] .calli__anote { margin-top: 10px; font-size: 22px; line-height: 1.36; }
.calli[data-skin="slide"] .calli__result { display: flex; align-items: center; gap: 30px; height: 104px; margin-top: 12px; }
.calli[data-skin="slide"] .calli__han { --h: 100px; --w: 380px; margin-left: -6px; }
.calli[data-skin="slide"] .calli__read { min-width: 0; }
.calli[data-skin="slide"] .calli__pinyin { font-size: 38px; white-space: nowrap; }
.calli[data-skin="slide"] .calli__under { gap: 16px; margin-top: 8px; }
.calli[data-skin="slide"] .calli__chip { padding: 6px 15px; font-size: 17px; }
.calli[data-skin="slide"] .calli__chipnote { display: none; }
.calli[data-skin="slide"] .calli__alts { gap: 8px; font-size: 18px; }
.calli[data-skin="slide"] .calli__alts button { height: 44px; padding: 0 12px; border-radius: 12px; }
.calli[data-skin="slide"] .calli__alts button svg { height: 28px; }
.calli[data-skin="slide"] .calli__consent { gap: 14px; margin-top: 14px; font-size: 23px; line-height: 30px; }
.calli[data-skin="slide"] .calli__shop { align-self: center; gap: 12px; max-width: 164px; margin-left: 8px; font-size: 20px; line-height: 25px; }
.calli[data-skin="slide"] .calli__consent input, .calli[data-skin="slide"] .calli__shop input { width: 28px; height: 28px; margin-top: 1px; }
.calli[data-skin="slide"] .calli__stage { grid-column: 2; grid-row: 1 / 5; gap: 16px; }
.calli[data-skin="slide"] .calli__paper { height: 806px; }
.calli[data-skin="slide"] .calli__specs { font-size: 20px; }
.calli[data-skin="slide"] .calli__leads { grid-column: 3; grid-row: 1 / 5; padding: 34px 36px 28px; border-radius: 30px; }
.calli[data-skin="slide"] .calli__side { font-size: 20px; }
.calli[data-skin="slide"] .calli__leadtitle { margin-top: 14px; font-size: 43px; }
.calli[data-skin="slide"] .calli__leadtext { margin-top: 16px; font-size: 25px; }
.calli[data-skin="slide"] .calli__list { margin-top: 24px; padding: 14px 22px 6px; border-radius: 20px; }
.calli[data-skin="slide"] .calli__listhead { padding-bottom: 12px; font-size: 20px; }
.calli[data-skin="slide"] .calli__count { min-width: 44px; height: 44px; padding: 0 12px; font-size: 24px; }
.calli[data-skin="slide"] .calli__rows li { column-gap: 14px; padding: 12px 0 13px; }
.calli[data-skin="slide"] .calli__rows b { font-size: 26px; line-height: 34px; }
.calli[data-skin="slide"] .calli__rows b svg { height: 27px; margin-left: 10px; }
.calli[data-skin="slide"] .calli__rows span { font-size: 22px; line-height: 28px; }
.calli[data-skin="slide"] .calli__rows i { padding: 5px 13px; font-size: 16px; }
.calli[data-skin="slide"] .calli__none { padding: 22px 0 26px; font-size: 22px; line-height: 1.4; }
.calli[data-skin="slide"] .calli__csv { height: 56px; margin-top: 18px; padding: 0 26px; font-size: 21px; }
.calli[data-skin="slide"] .calli__demo { margin-top: 14px; font-size: 21px; }

/* -- as a tall card, on narrow screens */
.calli[data-skin="tall"] { position: relative; inset: auto; container-type: inline-size; }
.calli[data-skin="tall"] .calli__canvas { display: flex; flex-direction: column; gap: 26px; padding: 26px 20px 28px; }
.calli[data-skin="tall"] .calli__top { display: none; }
.calli[data-skin="tall"] .calli__title { font-size: clamp(30px, 8.4vw, 46px); }
.calli[data-skin="tall"] .calli__title span, .calli[data-skin="tall"] .calli__title em { white-space: normal; }
.calli[data-skin="tall"] .calli__cap { gap: 10px; margin-bottom: 10px; font-size: 15.5px; line-height: 1.35; }
.calli[data-skin="tall"] .calli__cap b { width: 26px; height: 26px; font-size: 13.5px; }
.calli[data-skin="tall"] .calli__form, .calli[data-skin="tall"] .calli__mail, .calli[data-skin="tall"] .calli__actions { flex-wrap: wrap; gap: 10px; }
.calli[data-skin="tall"] .calli__field { flex: 1 1 210px; }
.calli[data-skin="tall"] .calli__field input { height: 56px; padding: 0 24px; font-size: 17px; }
.calli[data-skin="tall"] .btn { height: 56px; flex: 1 1 auto; }
.calli[data-skin="tall"] .calli__note, .calli[data-skin="tall"] .calli__mnote, .calli[data-skin="tall"] .calli__anote { margin-top: 10px; font-size: 14.5px; line-height: 1.45; }
.calli[data-skin="tall"] .calli__result { margin-top: 12px; }
.calli[data-skin="tall"] .calli__han { --h: clamp(84px, 26vw, 132px); --w: 92vw; margin-left: -5px; }
@supports (width: 1cqw) { .calli[data-skin="tall"] .calli__han { --w: 96cqw; } }
.calli[data-skin="tall"] .calli__pinyin { margin-top: 4px; font-size: 26px; }
.calli[data-skin="tall"] .calli__under { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 12px; }
.calli[data-skin="tall"] .calli__meta { flex-wrap: wrap; align-items: baseline; gap: 8px 12px; font-size: 14px; line-height: 1.5; }
.calli[data-skin="tall"] .calli__chip { padding: 5px 13px; font-size: 12px; }
.calli[data-skin="tall"] .calli__chipnote { flex: 1 1 240px; }
.calli[data-skin="tall"] .calli__alts { gap: 8px; font-size: 13px; }
.calli[data-skin="tall"] .calli__alts button { height: 46px; padding: 0 14px; border-radius: 14px; }
.calli[data-skin="tall"] .calli__alts button svg { height: 30px; }
.calli[data-skin="tall"] .calli__consent, .calli[data-skin="tall"] .calli__shop { gap: 11px; margin-top: 12px; font-size: 14.5px; line-height: 1.4; }
.calli[data-skin="tall"] .calli__shop { flex: 1 1 100%; margin-top: 4px; }
.calli[data-skin="tall"] .calli__consent input, .calli[data-skin="tall"] .calli__shop input { width: 20px; height: 20px; }
.calli[data-skin="tall"] .calli__stage { gap: 10px; padding: 22px 0 14px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 40%, #26211f, #0c0b0b 78%); }
.calli[data-skin="tall"] .calli__paper { height: 420px; }
.calli[data-skin="tall"] .calli__specs { font-size: 12.5px; }
.calli[data-skin="tall"] .calli__leads { padding: 22px 20px 20px; border-radius: 18px; }
.calli[data-skin="tall"] .calli__side { font-size: 12px; }
.calli[data-skin="tall"] .calli__leadtitle { margin-top: 10px; font-size: 26px; }
.calli[data-skin="tall"] .calli__leadtext { margin-top: 10px; font-size: 15.5px; }
.calli[data-skin="tall"] .calli__list { margin-top: 18px; padding: 12px 16px 4px; border-radius: 14px; }
.calli[data-skin="tall"] .calli__listhead { padding-bottom: 10px; font-size: 12.5px; }
.calli[data-skin="tall"] .calli__count { min-width: 32px; height: 32px; padding: 0 9px; font-size: 15px; }
.calli[data-skin="tall"] .calli__rows li { column-gap: 10px; padding: 10px 0; }
.calli[data-skin="tall"] .calli__rows b { font-size: 16.5px; line-height: 1.35; }
.calli[data-skin="tall"] .calli__rows b svg { height: 17px; margin-left: 7px; }
.calli[data-skin="tall"] .calli__rows span { font-size: 13.5px; line-height: 1.4; }
.calli[data-skin="tall"] .calli__rows i { padding: 4px 10px; font-size: 10.5px; }
.calli[data-skin="tall"] .calli__none { padding: 14px 0 16px; font-size: 14.5px; }
.calli[data-skin="tall"] .calli__csv { height: 46px; margin-top: 14px; padding: 0 20px; font-size: 14px; }
.calli[data-skin="tall"] .calli__demo { margin-top: 12px; font-size: 13px; }
@container (min-width: 700px) {
  .calli[data-skin="tall"] .calli__canvas { display: grid; grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: auto auto auto 1fr auto; gap: 24px 36px; padding: 34px 34px 32px; }
  .calli[data-skin="tall"] .calli__title, .calli[data-skin="tall"] .calli__step { grid-column: 1; }
  .calli[data-skin="tall"] .calli__title { font-size: 44px; }
  .calli[data-skin="tall"] .calli__stage { grid-column: 2; grid-row: 1 / 5; align-self: start; }
  .calli[data-skin="tall"] .calli__paper { height: 560px; }
  .calli[data-skin="tall"] .calli__han { --h: 112px; --w: 54cqw; }
  .calli[data-skin="tall"] .btn { flex: none; }
  .calli[data-skin="tall"] .calli__shop { flex: 0 1 auto; align-self: center; margin: 0 0 0 6px; }
  .calli[data-skin="tall"] .calli__leads { grid-column: 1 / -1; }
}
/* beside a tall card the arrows stay in view while the page scrolls */
@media (min-width: 701px) {
  .deck__stage.has-tall:not(.is-full) { align-items: flex-start; }
  .deck__stage.has-tall:not(.is-full) .deck__nav { position: sticky; top: calc(50vh - 27px); }
}

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  .cbar { top: 12px; left: 12px; right: 12px; padding: 8px 8px 8px 18px; }
  .cbar .lang button { padding: 9px 13px; }
  .lockup--sm { font-size: 21px; }
  .gate { padding: 98px 22px 40px; }
  .gate__form { flex-direction: column; }
  .gate__field { flex: none; }
  .gate__go { width: 100%; }
  .cbar__side { gap: 6px; }
  .deck__try--in { display: none; }
  .deck__try--out:not([hidden]) { display: inline-flex; }
  .cbar .deck__tools { gap: 5px; }
  .cbar .deck__count { display: none; }
  .cbar .tool { width: 40px; height: 40px; }
  .cbar .tool--text { padding: 0; justify-content: center; }
  .cbar .tool--text span { display: none; }
  .cbar .lang button { padding: 8px 10px; }
  .is-open .cbar { padding-left: 14px; }
  .is-open .cbar .lockup__x, .is-open .cbar .lockup__m { display: none; }
  .deck { padding-top: 84px; }
  .deck__stage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 2px; }
  .deck__frame { grid-column: 1 / -1; grid-row: 1; flex: none; width: 100%; }
  .deck__nav--prev { grid-column: 1; grid-row: 2; justify-self: start; margin-left: 10px; }
  .deck__nav--next { grid-column: 2; grid-row: 2; justify-self: end; margin-right: 10px; }
  .deck__stage.is-full { display: flex; }
  .is-full .deck__frame { width: auto; flex: 0 1 calc(100dvh * 1.7778); }
  .is-full .deck__nav--prev, .is-full .deck__nav--next { margin: 0; }
  .deck__foot { margin-top: 6px; padding: 0 12px; }
  .deck__grid-in { grid-template-columns: 1fr 1fr; gap: 8px; }
  .thumb { border-radius: 10px; }
  .deck__cta { margin-left: 2px; margin-right: 2px; }
}
/* laptops with a short screen: the whole gate stays in view */
@media (min-width: 701px) and (max-height: 820px) {
  .gate { padding-top: 92px; padding-bottom: 30px; }
  .gate .lockup { font-size: clamp(34px, 6.4vh, 56px); margin-bottom: 22px; }
  .gate__eyebrow { margin-bottom: 14px; }
  .gate__title { font-size: clamp(46px, 13vh, 104px); }
  .gate__for { margin-bottom: 22px; }
}
/* a phone held sideways: the slide takes the screen */
@media (orientation: landscape) and (max-height: 520px) {
  .is-open .cbar { top: 6px; padding-top: 4px; padding-bottom: 4px; }
  .deck { padding-top: 64px; }
  .deck__stage { display: flex; }
  .deck__frame { grid-column: auto; width: auto; flex: 0 1 calc((100vh - 76px) * 1.7778); flex-basis: calc((100svh - 76px) * 1.7778); }
  .deck__nav--prev, .deck__nav--next { margin: 0; }
}
/* full screen on a phone held upright: say that turning it helps */
@media (orientation: portrait) and (max-width: 700px) {
  .deck__stage.is-full::after { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .mmark__draw, .mmark__run { display: none; }
}
/* the end of the presentation: talk to us, or book a call (assets/js/booking.js) */
.deck__cta-side { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- A client whose mark is its name in letters (kgm.html) ---------- */
.lockup__m.lockup__word { width: auto; height: auto; align-self: center; color: #fff; }
.kgmark { display: block; height: .64em; width: auto; }
.gate .lockup__word::before { inset: -70% -30%; background: radial-gradient(closest-side, rgba(233, 75, 91, .34), transparent); }
.gate__client { height: .9em; color: var(--text); }
@media (max-width: 480px) { .gate .lockup__word .kgmark { height: .44em; } }

/* ---------- Korea and Morocco on the access page (kgm.html): each word with its flag and its colours ---------- */
.gate__title .flag { display: inline-block; height: .44em; width: auto; vertical-align: .1em; border-radius: .06em; box-shadow: 0 0 0 .012em rgba(255, 255, 255, .45), 0 .08em .3em rgba(0, 0, 0, .5); }
.gate__title .line:first-of-type .flag { margin-right: .22em; }
.gate__title .line:last-of-type .flag { margin-left: .2em; vertical-align: .16em; }
.gate__kr { background: linear-gradient(174deg, #ff5f6a 0 54%, #5b8cff 54% 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.gate__title em.gate__ma { background: linear-gradient(100deg, #ff6a6e 0%, #e0343b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* a festive welcome (assets/js/meet.js): the flags rise gently into place and wave in the breeze, in the same rhythm;
   confetti pops from them; petals and golden sparks drift down the page */
.gate__title { position: relative; isolation: isolate; }
.gate__title .flag { position: relative; z-index: 1; transform-origin: 0 50%; }
@media (prefers-reduced-motion: no-preference) {
  .gate__title .line:first-of-type .flag { animation: flag-rise 1s cubic-bezier(.3, 1.45, .5, 1) 1.5s both, flag-wave 3.6s ease-in-out 2.5s infinite; }
  .gate__title .line:last-of-type .flag { animation: flag-rise 1s cubic-bezier(.3, 1.45, .5, 1) 1.7s both, flag-wave 3.6s ease-in-out 2.7s infinite; }
}
@keyframes flag-rise { from { opacity: 0; transform: translateY(.4em) scale(.5); } }
@keyframes flag-wave { 0%, 100% { transform: none; } 25% { transform: skewY(-3deg) scaleX(.97); } 50% { transform: none; } 75% { transform: skewY(2.5deg) scaleX(.98); } }
.meet__bit { position: absolute; z-index: 2; width: .07em; height: .04em; margin: -.02em 0 0 -.035em; border-radius: 1px; pointer-events: none; }
.meet__bit.is-round { width: .05em; height: .05em; border-radius: 50%; }
.meet__petal, .meet__spark { position: absolute; z-index: -1; pointer-events: none; will-change: transform; }
.meet__petal { width: 13px; height: 10px; border-radius: 85% 0 85% 0; background: linear-gradient(135deg, #ffe1ec, #f48fb1 70%, #e86f9a); }
.meet__spark { width: 5px; height: 5px; border-radius: 50%; background: #ffd99a; box-shadow: 0 0 6px 1px rgba(249, 178, 78, .9), 0 0 14px 2px rgba(249, 178, 78, .35); }

/* the toggle between a client's bookmark designs (assets/js/calli-live.js), above the bookmark */
.calli__designs { display: flex; gap: 4px; padding: 4px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); }
.calli__designs[hidden] { display: none; }
.calli__designs button { border-radius: 99px; font-weight: 600; color: var(--mute); white-space: nowrap; transition: background .3s, color .3s; }
.calli__designs button:hover { color: var(--text); }
.calli__designs button[aria-pressed="true"] { background: var(--text); color: #0a0a0a; }
.calli[data-skin="slide"] .calli__designs button { padding: 9px 18px; font-size: 18px; }
.calli[data-skin="slide"] .calli__stage.has-designs .calli__paper { height: 742px; }
.calli[data-skin="tall"] .calli__designs button { padding: 8px 16px; font-size: 14px; }

/* ---------- A lantern for Korea, mint tea for Morocco (kgm.html): two small scenes beside the title of the access page ----------
   Drawn in SVG, moved by CSS alone. Without motion (reduced motion) they are still: the lantern lit, the glass full. */
.fest { position: absolute; z-index: 0; top: 50%; height: auto; overflow: visible; pointer-events: none; translate: 0 -50%; }
/* they live in the title (so that they follow it); on a wide screen they stand near the edges of the card, level with it */
.fest--ko { left: calc(50% - 50vw + var(--gap) + clamp(14px, 6.5vw, 110px)); width: clamp(70px, 8.4vw, 132px); }
.fest--ma { right: calc(50% - 50vw + var(--gap) + clamp(8px, 4.2vw, 76px)); width: clamp(96px, 11.6vw, 186px); }
.is-restoring .fest { visibility: hidden; }
.fest__stick { fill: none; stroke: #7a5636; stroke-width: 5; stroke-linecap: round; }
.fest__cord { fill: none; stroke: #c9a15a; stroke-width: 1.6; }
.fest__lantern, .fest__tassel, .fest__pot, .fest__halo { transform-box: view-box; }
.fest__lantern { transform-origin: 60px 11px; }
.fest__tassel { transform-origin: 60px 149px; }
.fest__halo { transform-origin: 60px 94px; opacity: .8; }
.fest__pot { transform-origin: 112px 62px; transform: rotate(-6deg); }
.fest__stream { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; }
.fest__tea { transform-box: fill-box; transform-origin: 50% 100%; }
.fest__steam { opacity: .7; }
.fest__steam path { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.6; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .fest { --d: 2.1s; --t: 10s; animation: fest-in 1.1s var(--ease) 1.8s both; }
  .fest__lantern { animation: fest-sway 5.2s ease-in-out infinite; }
  .fest__tassel { animation: fest-sway 2.6s ease-in-out -.6s infinite; }
  .fest__halo { animation: fest-halo 3.4s ease-in-out infinite; }
  .fest__flame { animation: fest-flicker 1.7s ease-in-out infinite; }
  .fest__pot { animation: fest-pot var(--t) cubic-bezier(.45, 0, .3, 1) var(--d) infinite both; }
  .fest__stream { animation: fest-stream var(--t) linear var(--d) infinite both; }
  .fest__glass { animation: fest-serve var(--t) cubic-bezier(.4, 0, .2, 1) var(--d) infinite both; }
  .fest__tea { animation: fest-fill var(--t) linear var(--d) infinite both; }
  .fest__foam { animation: fest-foam var(--t) linear var(--d) infinite both; }
  .fest__steam { animation: fest-steam var(--t) linear var(--d) infinite both; }
  .fest__steam path { animation: fest-wisp 2.6s ease-in-out infinite; }
  .fest__steam path:nth-child(2) { animation-delay: -.9s; }
  .fest__steam path:nth-child(3) { animation-delay: -1.7s; }
}
@keyframes fest-in { from { opacity: 0; } }
@keyframes fest-sway { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
@keyframes fest-halo { 0%, 100% { opacity: .5; transform: scale(.93); } 50% { opacity: .92; transform: scale(1.07); } }
@keyframes fest-flicker { 0%, 100% { opacity: .72; } 30% { opacity: 1; } 55% { opacity: .66; } 80% { opacity: .95; } }
/* one glass: it arrives empty, the pot tips and pours from high, the glass fills and steams, then it is served and the next one arrives */
@keyframes fest-pot { 0%, 7% { transform: rotate(-6deg); } 16%, 47% { transform: translateY(-4px) rotate(-40deg); } 58%, 100% { transform: rotate(-6deg); } }
@keyframes fest-stream { 0%, 15% { stroke-dashoffset: 1.1; } 20%, 44% { stroke-dashoffset: 0; } 49%, 100% { stroke-dashoffset: -1.1; } }
@keyframes fest-serve { 0% { transform: translateX(24px); opacity: 0; } 7%, 88% { transform: none; opacity: 1; } 100% { transform: translateX(-34px); opacity: 0; } }
@keyframes fest-fill { 0%, 19% { transform: scaleY(0); } 46%, 100% { transform: scaleY(1); } }
@keyframes fest-foam { 0%, 40% { opacity: 0; } 48%, 100% { opacity: 1; } }
@keyframes fest-steam { 0%, 44% { opacity: 0; } 52%, 85% { opacity: 1; } 91%, 100% { opacity: 0; } }
@keyframes fest-wisp { 0% { transform: translateY(6px); opacity: 0; } 35% { opacity: .85; } 100% { transform: translateY(-10px); opacity: 0; } }
/* phones: each country's name has its row, and the two drawings change sides, each one offered to the other country:
   the tea is poured at the top right, beside Korea, and the lantern hangs at the bottom left, beside Morocco
   (sizes in em: they follow the size of the title) */
@media (max-width: 760px) {
  .gate__title .gate__kr + span { display: block; }
  .fest { translate: none; }
  .fest--ma { top: -.15em; right: auto; left: calc(50% + 2.7em); width: 1.15em; }
  .fest--ko { top: auto; bottom: -.1em; left: auto; right: calc(50% + 2.42em); width: 1em; }
}
@media (max-width: 380px) {
  .gate .lockup:has(.lockup__word) { font-size: 8.6vw; }      /* two names side by side (a client shown by its name): they fit a small phone */
  .fest--ma { left: calc(50% + 2.62em); width: .9em; }
  .fest--ko { right: calc(50% + 2.36em); width: .9em; }
}
@media (max-width: 350px) {
  .fest--ma { left: calc(50% + 2.54em); width: .6em; }
  .fest--ko { right: calc(50% + 2.3em); width: .8em; }
}
}
