/* First screen on the site background colour. */
.opener .opener-sticky { background: #f5f8fb; color: #12263a; }
.opener .ot-head { color: #12263a; }
.opener .ot-kicker { color: rgba(18, 38, 58, .62); }
.opener .ot-sub { color: rgba(18, 38, 58, .74); }
.opener .opener-orbs span { background: radial-gradient(circle at 35% 35%, rgba(77, 184, 255, .26), transparent 62%); }
.opener .opener-orbs span + span { background: radial-gradient(circle at 70% 70%, rgba(34, 195, 187, .12), transparent 60%); }
.opener .btn--ghost-light { background: #fff; color: #12263a; border-color: rgba(18, 38, 58, .16); }
.page-home .site-header.on-dark:not(.is-scrolled) .logo img { filter: none !important; }
.page-home .site-header.on-dark:not(.is-scrolled) .nav > a, .page-home .site-header.on-dark:not(.is-scrolled) .nav-drop > button { color: #12263a; }
.page-home .site-header.on-dark:not(.is-scrolled) .burger { background: transparent; border-color: rgba(18, 38, 58, .25); }
.page-home .site-header.on-dark:not(.is-scrolled) .burger span { background: #12263a; }
.page-home .site-header.on-dark:not(.is-scrolled) .burger > span:not(.visually-hidden) { background: #12263a; }

/* first screen: one headline, a calm height, and a circle that fades out instead of being cut */
.opener, html.reduced .opener { height: auto !important; }
.opener .opener-sticky { position: relative; height: auto; min-height: min(100svh, 680px); display: grid; place-items: center; padding: calc(var(--header-h) + 32px) var(--gutter) 40px; }
.opener .opener-orbs { opacity: .75; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 98%); mask-image: linear-gradient(180deg, #000 62%, transparent 98%); }
.opener .opener-orbs span { width: min(640px, 92vw); height: min(640px, 92vw); margin: calc(min(640px, 92vw) / -2) 0 0 calc(min(640px, 92vw) / -2); }
.opener .ot-sub { max-width: 56ch; }
@media (max-width: 760px) { .opener .opener-sticky { min-height: min(100svh, 560px); } }
.page-home .opener + .clients { padding-top: clamp(16px, 2.5vw, 32px); }

/* first screen layout: everything on one centre line, the changing word on its own row */
.opener .opener-title { width: min(100%, 1120px); margin-inline: auto; justify-items: center; gap: 0; text-align: center; }
.opener .ot-head { max-width: none; font-size: clamp(1.7rem, 3.3vw, 3.15rem); line-height: 1.16; letter-spacing: -.035em; }
.opener .ot-head .rotator { display: block; width: 100%; padding: 0; margin: 10px 0 0; font-size: 1.5em; line-height: 1.12; letter-spacing: -.03em; vertical-align: baseline; }
.opener .ot-head em { display: inline-block; white-space: nowrap; }
.opener .ot-sub { max-width: none; margin: 20px 0 0; font-size: clamp(1rem, 1.35vw, 1.2rem); }
.opener .ot-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.opener .ot-tags li { padding: 5px 14px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px #d6e4ef; color: #125f9c; font-size: .86rem; font-weight: 600; }
.opener .ot-actions { justify-content: center; margin-top: 24px; }
.opener .ot-note { margin: 16px 0 0; color: rgba(18, 38, 58, .66); font-size: .92rem; }
/* one still, soft circle directly behind the text */
.opener .opener-orbs span { animation: none !important; transform: none; }
.opener .opener-orbs span + span { display: none; }
.opener .opener-orbs span { background: radial-gradient(circle at 50% 50%, rgba(77, 184, 255, .24), rgba(34, 195, 187, .08) 48%, transparent 68%); }

/* headline balance: an open, readable first line, and a word that is not much larger */
.opener .ot-head { font-size: clamp(1.75rem, 3.5vw, 3.4rem); font-weight: 700; letter-spacing: -.012em; line-height: 1.2; color: #12263a; }
.opener .ot-head .rotator { font-size: 1.22em; letter-spacing: -.01em; margin-top: 6px; }
.opener .opener-title { width: min(100%, 1280px); }
@media (min-width: 761px) { .opener .ot-head { white-space: nowrap; } }
/* the content box must be as wide as the headline, or the headline sits off-centre */
.opener .opener-title { width: 100%; max-width: 1280px; padding: 0; grid-template-columns: minmax(0, 1fr); }
.opener .opener-title > * { min-width: 0; justify-self: center; }


/* the rotating word needs room above, below and at the end, or its letters get clipped */
.opener .ot-head .rotator { line-height: 1.3; padding: .04em .1em .1em; margin-top: 2px; margin-bottom: -.04em; }
.opener .ot-head .rotator em { padding: 0 .08em .06em; margin: 0 -.08em; line-height: 1.3; }

/* the headline line is the largest thing on the first screen; the rotating word sits below it, a step smaller */
.opener .ot-head { font-size: clamp(1.9rem, 4vw, 4rem); line-height: 1.16; }
.opener .ot-head .rotator { font-size: .86em; }

/* ---------- first screen: the wow moment ---------- */
.opener .opener-sticky { overflow: hidden; isolation: isolate; }
.opener .opener-orbs { display: none; }
.ot-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.ot-bg i { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; will-change: transform; }
.ot-bg i:nth-child(1) { left: -14vmax; top: -30vmax; background: radial-gradient(circle, rgba(77, 184, 255, .42), transparent 64%); animation: otA 15s ease-in-out infinite alternate; }
.ot-bg i:nth-child(2) { right: -18vmax; top: -18vmax; background: radial-gradient(circle, rgba(34, 195, 187, .34), transparent 64%); animation: otB 19s ease-in-out infinite alternate; }
.ot-bg i:nth-child(3) { left: 24%; bottom: -40vmax; background: radial-gradient(circle, rgba(242, 169, 59, .24), transparent 62%); animation: otC 23s ease-in-out infinite alternate; }
@keyframes otA { to { transform: translate(16vmax, 9vmax) scale(1.12); } }
@keyframes otB { to { transform: translate(-14vmax, 12vmax) scale(.92); } }
@keyframes otC { to { transform: translate(-12vmax, -9vmax) scale(1.14); } }
.ot-bg b { position: absolute; inset: 0; background-image: radial-gradient(rgba(24, 119, 194, .55) 1.3px, transparent 1.6px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(circle 340px at var(--mx, 50%) var(--my, 42%), #000, transparent 100%); mask-image: radial-gradient(circle 340px at var(--mx, 50%) var(--my, 42%), #000, transparent 100%); }

.ot-w { display: inline-block; animation: otRise .75s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 55ms) both; }
@keyframes otRise { from { opacity: 0; transform: translateY(.55em); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
.opener .ot-head .rotator { overflow: visible; perspective: 700px; }
.opener .ot-head .rotator em { background: none; -webkit-text-fill-color: currentColor; color: inherit; transition: none; transform: none !important; opacity: 1 !important; }
.ot-l { display: inline-block; transform-origin: 50% 80%; backface-visibility: hidden; }
.ot-in .ot-l, .ot-ready .ot-l { animation: otFlip .55s cubic-bezier(.2, .9, .25, 1.15) calc(var(--i) * 32ms) both; }
.ot-ready .rotator em:not(.ot-in):not(.ot-out) .ot-l { animation-delay: calc(450ms + var(--i) * 32ms); }
.ot-out .ot-l { animation: otLeave .28s ease-in calc(var(--i) * 14ms) both; }
@keyframes otFlip { from { opacity: 0; transform: translateY(.42em) rotateX(-85deg); } to { opacity: 1; transform: none; } }
@keyframes otLeave { to { opacity: 0; transform: translateY(-.34em) rotateX(70deg); } }
.ot-pulse { position: absolute; left: 50%; top: 50%; z-index: -1; width: 3.4em; height: 1.3em; margin: -.65em 0 0 -1.7em; border-radius: 50%; opacity: 0; pointer-events: none; background: radial-gradient(closest-side, rgba(77, 184, 255, .42), rgba(34, 195, 187, .16) 60%, transparent); }
.ot-pulse.go { animation: otPulse 1.1s ease-out both; }
@keyframes otPulse { from { opacity: .95; transform: scale(.5); } to { opacity: 0; transform: scale(3.4); } }

.opener .ot-sub, .opener .ot-tags, .opener .ot-actions, .opener .ot-note { animation: otUp .6s ease-out both !important; }
.opener .ot-sub { animation-delay: .45s !important; }
.opener .ot-tags { animation-delay: .52s !important; }
.opener .ot-actions { animation-delay: .6s !important; }
.opener .ot-note { animation-delay: .68s !important; }
@keyframes otUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.opener .ot-tags li { background: rgba(255, 255, 255, .78); }
@media (max-width: 760px) { .ot-bg b { -webkit-mask-image: radial-gradient(circle 190px at var(--mx, 50%) var(--my, 42%), #000, transparent 100%); mask-image: radial-gradient(circle 190px at var(--mx, 50%) var(--my, 42%), #000, transparent 100%); } }
@media (prefers-reduced-motion: reduce) {
  .ot-bg i, .ot-w, .ot-l, .opener .ot-sub, .opener .ot-tags, .opener .ot-actions, .opener .ot-note { animation: none !important; opacity: 1 !important; }
}

/* the changing word acts out its meaning */
.ot-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ot-a { position: absolute; left: 50%; top: 50%; width: clamp(24px, 2.7vw, 34px); height: clamp(24px, 2.7vw, 34px); margin: calc(clamp(24px, 2.7vw, 34px) / -2) 0 0 calc(clamp(24px, 2.7vw, 34px) / -2); opacity: 0; }
.ot-a svg { display: block; width: 100%; height: 100%; }
.ot-pop { animation: fxPop 1.7s cubic-bezier(.2, 1.3, .4, 1) calc(var(--i) * 110ms) both; }
.ot-rise { animation: fxRise 1.7s ease-out calc(var(--i) * 120ms) both; }
.ot-fall { animation: fxFall 1.7s ease-in calc(var(--i) * 120ms) both; }
.ot-drop { animation: fxDrop 1.7s cubic-bezier(.3, 1.4, .5, 1) calc(var(--i) * 120ms) both; }
.ot-spin { animation: fxSpin 1.8s ease-in-out calc(var(--i) * 60ms) both; }
.ot-swing { animation: fxSwing 1.8s ease-in-out calc(var(--i) * 80ms) both; }
.ot-drive { top: auto; bottom: -2px; margin-top: 0; animation: fxDrive 1.9s cubic-bezier(.4, 0, .5, 1) both; }
.ot-scan { position: absolute; left: 50%; top: -4%; bottom: -4%; width: var(--w); margin-left: calc(var(--w) / -2); overflow: hidden; }
.ot-scan::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; border-radius: 3px; background: #22c3bb; box-shadow: 0 0 18px 7px rgba(34, 195, 187, .55); animation: fxScan 1.5s ease-in-out both; }
@keyframes fxPop { 0% { opacity: 0; transform: scale(.2); } 18% { opacity: 1; transform: scale(1); } 74% { opacity: 1; transform: translateY(-4px); } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes fxRise { 0% { opacity: 0; transform: translateY(26px); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-34px); } }
@keyframes fxFall { 0% { opacity: 0; transform: translateY(-34px) rotate(-12deg); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(26px) rotate(12deg); } }
@keyframes fxDrop { 0% { opacity: 0; transform: translateY(-44px); } 30% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.8); } }
@keyframes fxSpin { 0% { opacity: 0; transform: rotate(-120deg) scale(.6); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: rotate(300deg) scale(1); } }
@keyframes fxSwing { 0% { opacity: 0; transform: rotate(-30deg); } 15% { opacity: 1; } 35% { transform: rotate(26deg); } 55% { transform: rotate(-22deg); } 75% { opacity: 1; transform: rotate(18deg); } 100% { opacity: 0; transform: none; } }
@keyframes fxDrive { 0% { opacity: 0; transform: translateX(var(--from)); } 14% { opacity: 1; } 86% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--to)); } }
@keyframes fxScan { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 50% { left: calc(100% - 3px); } 88% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ot-fx { display: none; } }

/* lighter first screen: two slow colour washes that stop off screen, still dots, no blur */
.ot-bg i { width: 52vmax; height: 52vmax; will-change: auto; }
.ot-bg i:nth-child(1) { left: -12vmax; top: -24vmax; }
.ot-bg i:nth-child(2) { right: -14vmax; top: -14vmax; }
.opener.is-offscreen .ot-bg i { animation-play-state: paused; }
.ot-bg b { -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 42%, #000, transparent 100%) !important; mask-image: radial-gradient(ellipse 58% 62% at 50% 42%, #000, transparent 100%) !important; opacity: .55; }
@keyframes otRise { from { opacity: 0; transform: translateY(.55em); } to { opacity: 1; transform: none; } }
.opener [data-ot-cta] { min-width: 292px; justify-content: center; }
@media (min-width: 640px) { .opener .ot-actions { display: flex; flex-wrap: nowrap; width: max-content; } }
@media (max-width: 639px) { .opener .ot-actions { display: flex; flex-wrap: wrap; justify-content: center; } }

@media (min-width: 640px) { .opener [data-ot-cta] { min-width: 336px; } }

/* first screen: the software at work behind the headline */
.ot-live { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; perspective: 1100px; }
.ot-toast { position: absolute; left: 50%; bottom: 10px; padding: 7px 14px 7px 30px; border-radius: 99px; background: #12263a; color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, 10px); }
.ot-toast::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #22c3bb; }
.ot-toast.go { animation: otToast 2.4s ease-out both; }
@keyframes otToast { 0% { opacity: 0; transform: translate(-50%, 10px); } 12%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@media (max-width: 1239px) { .opener .opener-sticky { padding-bottom: 62px; } }
@media (prefers-reduced-motion: reduce) { .ot-live { display: none; } }

/* first screen colour follows the module on show */
@property --tint { syntax: "<color>"; inherits: true; initial-value: #e4f2fd; }
@property --glow1 { syntax: "<color>"; inherits: true; initial-value: #7cc6ff; }
@property --glow2 { syntax: "<color>"; inherits: true; initial-value: #22c3bb; }
.opener .opener-sticky { background: linear-gradient(180deg, var(--tint) 0%, var(--tint) 62%, color-mix(in srgb, var(--tint) 0%, transparent) 100%); transition: --tint .9s ease, --glow1 .9s ease, --glow2 .9s ease; }
.ot-bg i:nth-child(1) { background: radial-gradient(circle, color-mix(in srgb, var(--glow1) 52%, transparent), transparent 64%); }
.ot-bg i:nth-child(2) { background: radial-gradient(circle, color-mix(in srgb, var(--glow2) 40%, transparent), transparent 64%); }
@media (prefers-reduced-motion: reduce) { .opener .opener-sticky { transition: none; } }

/* four colour washes cover the whole first screen and all change with the module */
@property --glow3 { syntax: "<color>"; inherits: true; initial-value: #ffb84d; }
@property --glow4 { syntax: "<color>"; inherits: true; initial-value: #7be08f; }
.opener .opener-sticky { transition: --tint .9s ease, --glow1 .9s ease, --glow2 .9s ease, --glow3 .9s ease, --glow4 .9s ease; }
.ot-bg i { width: 56vmax; height: 56vmax; }
.ot-bg i:nth-child(1) { left: -16vmax; top: -24vmax; right: auto; bottom: auto; background: radial-gradient(circle, color-mix(in srgb, var(--glow1) 58%, transparent), transparent 62%); }
.ot-bg i:nth-child(2) { right: -16vmax; top: -22vmax; left: auto; bottom: auto; background: radial-gradient(circle, color-mix(in srgb, var(--glow2) 52%, transparent), transparent 62%); }
.ot-bg i:nth-child(3) { left: -18vmax; bottom: -30vmax; top: auto; right: auto; background: radial-gradient(circle, color-mix(in srgb, var(--glow3) 46%, transparent), transparent 62%); animation: otB 21s ease-in-out infinite alternate; }
.ot-bg i:nth-child(4) { right: -18vmax; bottom: -30vmax; top: auto; left: auto; background: radial-gradient(circle, color-mix(in srgb, var(--glow4) 46%, transparent), transparent 62%); animation: otA 25s ease-in-out infinite alternate; }
.ot-bg { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }


/* corporate tone: the same colours, held back, with a calm bright centre so the message leads */
.opener .opener-sticky { background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 55%, #f7f9fc) 0%, color-mix(in srgb, var(--tint) 55%, #f7f9fc) 62%, transparent 100%); }
.ot-bg i:nth-child(1) { background: radial-gradient(circle, color-mix(in srgb, var(--glow1) 26%, transparent), transparent 62%); }
.ot-bg i:nth-child(2) { background: radial-gradient(circle, color-mix(in srgb, var(--glow2) 22%, transparent), transparent 62%); }
.ot-bg i:nth-child(3) { background: radial-gradient(circle, color-mix(in srgb, var(--glow3) 20%, transparent), transparent 62%); }
.ot-bg i:nth-child(4) { background: radial-gradient(circle, color-mix(in srgb, var(--glow4) 20%, transparent), transparent 62%); }
.ot-bg i { animation-duration: 32s !important; }
.ot-bg::after { content: ""; position: absolute; left: 50%; top: 46%; width: min(1100px, 92vw); height: 62%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0)); }
.ot-bg b { opacity: .32; }
.opener .ot-tags li { background: #fff; box-shadow: inset 0 0 0 1px #d6e2ec; }

/* speed: the colour washes stay, but only drift on large screens */
@media (max-width: 1024px) { .ot-bg i, .ot-bg::after { animation: none !important; } }

/* ---------- hero: "What do you sell?" trade picker ---------- */
.hx { --hx-ink: #12263a; }
.opener .ot-live { display: none; }
@media (prefers-reduced-motion: reduce) { .hx * { animation: none !important; transition: none !important; } }

.hx-pick { margin-top: 30px; display: grid; justify-items: center; gap: 14px; }
.hx-pick-q { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #4d6275; }
.hx-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; }
.hx-c { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid #d6e4ef; background: rgba(255,255,255,.9); color: #12263a; font: 600 .88rem/1 inherit; cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s, background .25s; }
.hx-c img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.hx-c:hover { transform: translateY(-2px); border-color: #9fd0f5; box-shadow: 0 12px 24px -16px rgba(24,119,194,.6); }
.hx-c[aria-pressed="true"] { background: #12263a; border-color: #12263a; color: #fff; }
.hx-out { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px 10px 10px; border-radius: 20px; background: #fff; border: 1px solid #dbe7f0; box-shadow: 0 18px 40px -28px rgba(18,38,58,.5); text-align: left; max-width: 640px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.hx-out.on { opacity: 1; transform: none; }
.hx-out img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.hx-out p { margin: 0; font-size: .9rem; color: #4d6275; line-height: 1.45; }
.hx-out strong { display: block; color: #12263a; font-size: 1rem; margin-bottom: 2px; }
.hx-out a { flex: none; margin-left: auto; padding: 10px 16px; border-radius: 999px; background: linear-gradient(100deg,#2f9fe8,#17b3aa); color: #fff; font-weight: 650; font-size: .85rem; text-decoration: none; white-space: nowrap; }
@media (max-width: 600px) {
  .hx-pick { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .hx-row { flex-wrap: nowrap; justify-content: flex-start; max-width: none; width: 100%; overflow-x: auto; padding: 4px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hx-row::-webkit-scrollbar { display: none; }
  .hx-c { flex: none; scroll-snap-align: start; }
  .hx-out { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; margin: 0 16px; max-width: none; }
  .hx-out img { width: 56px; height: 56px; grid-row: span 1; }
  .hx-out a { grid-column: 1 / -1; margin: 8px 0 0; text-align: center; }
}
