/* ---------- Brandify Fontix page: same feel as Media, lit in blue with a green accent ---------- */
:root { --fx: #1F4FC4; --fx-hi: #6E9BFF; --fx-lo: #0B2470; --fx-g: #3DFF41; }
/* the page is always lit orange; the light also follows the pointer */
.fx-light { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.fx-light i { position: absolute; inset: 0; }
.fx-light .l1 { will-change: opacity; background: radial-gradient(60vmax 50vmax at 82% 18%, rgba(31,79,196,.34), transparent 70%), radial-gradient(50vmax 40vmax at 8% 88%, rgba(61,255,65,.12), transparent 70%); animation: fx-breathe 9s ease-in-out infinite alternate; }
.fx-light .l2 { inset: auto; left: 0; top: 0; width: 68vmax; height: 68vmax; margin: -34vmax 0 0 -34vmax; background: radial-gradient(closest-side, rgba(61,255,65,.22), transparent); transform: translate3d(50vw, 40vh, 0); will-change: transform; }

.fx-hero-in { position: relative; padding-block: clamp(120px, 18vh, 200px) clamp(64px, 10vh, 110px); display: grid; gap: clamp(14px, 1.6vw, 22px); justify-items: start; }
.fx-eyebrow { margin: 0; color: var(--fx-hi); font-weight: 600; letter-spacing: .02em; display: inline-flex; align-items: center; gap: .6em; }
.fx-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fx); box-shadow: 0 0 0 4px rgba(31,79,196,.25), 0 0 18px var(--fx); animation: fx-pulse 2.2s ease-in-out infinite; }
@keyframes fx-pulse { 50% { box-shadow: 0 0 0 9px rgba(31,79,196,0), 0 0 26px var(--fx); } }
.fx-title { margin: 0; font-family: "IBM Plex Sans", var(--text); font-weight: 700; font-size: clamp(3.4rem, 11vw, 10.5rem); line-height: .92; letter-spacing: -.03em; }
:root[dir="rtl"] .fx-title { text-align: right; justify-self: start; }
.fx-hot { background: linear-gradient(100deg, #BFD3FF 0%, var(--fx-hi) 30%, var(--fx) 60%, #3DFF41 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes fx-sheen { to { background-position: 100% 0; } }
.fx-lede { margin: 0; max-width: 56ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.75; opacity: .9; }
.fx-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chips li { font-size: .9rem; padding: .45em 1em; border-radius: 999px; border: 1px solid rgba(110,155,255,.45); background: rgba(4,10,30,.55); }
.fx-stats { margin: clamp(10px, 2vw, 24px) 0 0; display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); }
.fx-stats div { display: grid; gap: 2px; }
.fx-stats dt { order: 2; font-size: .9rem; opacity: .7; }
.fx-stats dd { order: 1; margin: 0; font-family: "IBM Plex Sans", var(--text); font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; color: var(--fx-hi); }
:root[dir="rtl"] .fx-stats dd { text-align: right; }
.fx-cue { position: absolute; bottom: 26px; inset-inline-end: var(--gutter); width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 14px; }
.fx-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--fx); animation: fx-cue 1.8s ease-in-out infinite; }
@keyframes fx-cue { 60% { transform: translateY(14px); opacity: 0; } 61% { transform: none; opacity: 0; } }

.fx-h2 { margin: 10px 0 0; font-family: var(--display); font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.15; font-weight: 700; }
.fx-dim { opacity: .55; }
:root[dir="ltr"] .fx-door-go svg, :root[dir="ltr"] .fx-link svg, :root[dir="ltr"] .fx-btn svg { transform: scaleX(-1); }
.fx-link, .fx-btn { display: inline-flex; align-items: center; gap: .7em; font-weight: 600; color: var(--fx-hi); text-decoration: none; }

/* ---------- call to action ---------- */
.fx-cta { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px); }
.fx-cta-in { position: relative; overflow: hidden; display: grid; gap: 14px; justify-items: start; padding: clamp(32px, 5vw, 72px); border-radius: 28px; background: linear-gradient(130deg, #6E9BFF 0%, #1F4FC4 50%, #0B2470 100%); color: #fff; }
.fx-cta-in::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; inset-inline-end: -15%; top: -40%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.35), transparent); animation: fx-breathe 5s ease-in-out infinite alternate; pointer-events: none; }
.fx-cta-in h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.1; }
.fx-cta-in p { margin: 0; font-size: 1.1rem; opacity: .92; }
.fx-btn { position: relative; z-index: 1; margin-top: 10px; padding: .95em 1.6em; border-radius: 999px; background: #0C0C0C; color: #fff; transition: transform .3s ease, box-shadow .3s ease; }
.fx-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,.35); }

@media (prefers-reduced-motion: reduce) {
  .fx-row, .fx-belt, .fx-light .l1, .fx-hot, .fx-eyebrow::before, .fx-cue span, .fx-cta-in::after { animation: none; }
}

/* ---------- about ---------- */
.fx-about { padding-block: clamp(90px, 12vw, 160px) clamp(40px, 6vw, 80px); }
.fx-about-grid { margin-top: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.fx-quote { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1.2; }
.fx-quote .fx-hot { display: block; }
.fx-about-txt { display: grid; gap: 18px; padding-inline-start: clamp(18px, 2vw, 28px); border-inline-start: 2px solid rgba(31,79,196,.55); }
.fx-about-txt p { margin: 0; font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.9; opacity: .88; }

/* ---------- services ---------- */
.fx-services { padding-block: clamp(50px, 7vw, 100px) clamp(20px, 3vw, 40px); }
.fx-svc-row { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.fx-svc { --sx: 50%; --sy: 0%; position: relative; display: grid; align-content: start; gap: 14px; padding: clamp(24px, 2.4vw, 34px); border-radius: 22px; overflow: hidden;
  background: radial-gradient(260px circle at var(--sx) var(--sy), rgba(31,79,196,.16), transparent 70%), rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.fx-svc:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(61,255,65,.6), 0 24px 60px rgba(31,79,196,.18); }
.fx-svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fx-svc-ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(150deg, #6E9BFF, #1F4FC4 60%, #0B2470); box-shadow: 0 10px 30px rgba(31,79,196,.35); }
.fx-svc-ic svg { width: 26px; height: 26px; }
.fx-svc-n { font-family: "IBM Plex Sans", var(--text); font-weight: 700; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(110,155,255,.6); }
.fx-svc h3 { margin: 0; font-family: var(--display); font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.25; }
.fx-svc p { margin: 0; line-height: 1.85; opacity: .82; }
@media (max-width: 900px) {
  .fx-about-grid, .fx-svc-row { grid-template-columns: 1fr; }
}

/* ---------- our work: videos belt + one wide card per design client ---------- */
.fx-work { padding-block: clamp(80px, 10vw, 140px) clamp(30px, 4vw, 60px); }
.fx-sub { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.fx-sub h3 { margin: 0; display: flex; align-items: baseline; gap: .55em; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.fx-sub-n { font-family: "IBM Plex Sans", var(--text); font-size: .55em; font-weight: 600; color: var(--fx-hi); }
.fx-sub-hint { margin: 0; font-size: .92rem; opacity: .6; }
.fx-work .fx-track-link { margin-top: 22px; }

.fx-cases { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.fx-case.client { padding: 0; overflow: visible; }
.fx-case { position: relative; border-radius: 22px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .5s ease, background .5s ease; }
.fx-case:hover, .fx-case.open { box-shadow: inset 0 0 0 1px rgba(61,255,65,.55), 0 20px 60px rgba(31,79,196,.12); }
.fx-case.open { background: rgba(31,79,196,.06); }
.fx-case-head { position: relative; width: 100%; height: clamp(120px, 13vw, 170px); display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); padding: 0 clamp(18px, 2.4vw, 34px); border: 0; border-radius: 22px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; overflow: hidden; }
.fx-case-head:focus-visible { outline: 3px solid var(--fx); outline-offset: 2px; }
.fx-case-id { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); min-width: 0; flex: 1; }
.fx-case-n { font-family: "IBM Plex Sans", var(--text); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: transparent; -webkit-text-stroke: 1px rgba(110,155,255,.7); }
.fx-case-logo { width: clamp(52px, 5vw, 72px); height: clamp(52px, 5vw, 72px); object-fit: contain; padding: 8px; border-radius: 16px; background: #fff; flex: none; }
.fx-case-words { display: grid; gap: 4px; min-width: 0; }
.fx-case-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.15; }
.fx-case-meta { font-size: .9rem; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a fan of the client's posts on the far side, opening up on hover */
.fx-case-thumbs { position: absolute; inset-block: 0; inset-inline-end: clamp(90px, 9vw, 130px); width: 46%; display: flex; align-items: center; justify-content: flex-end; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent); mask-image: linear-gradient(to left, #000 55%, transparent); }
:root[dir="ltr"] .fx-case-thumbs { -webkit-mask-image: linear-gradient(to right, #000 55%, transparent); mask-image: linear-gradient(to right, #000 55%, transparent); }
.fx-case-thumbs img { flex: none; height: 78%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; margin-inline-start: -34px; box-shadow: 0 10px 30px rgba(0,0,0,.5); transform: rotate(calc(var(--r, 0) * 1deg)); transition: transform .6s cubic-bezier(.2,.8,.2,1), margin .6s cubic-bezier(.2,.8,.2,1); }
.fx-case-thumbs img:nth-child(1) { --r: -6; } .fx-case-thumbs img:nth-child(2) { --r: 4; } .fx-case-thumbs img:nth-child(3) { --r: -3; } .fx-case-thumbs img:nth-child(4) { --r: 5; } .fx-case-thumbs img:nth-child(5) { --r: -4; }
.fx-case-head:hover .fx-case-thumbs img { margin-inline-start: -10px; transform: rotate(0deg) translateY(-4px); }
.fx-case.open .fx-case-thumbs { opacity: 0; transition: opacity .3s ease; }
.fx-case-count { position: relative; z-index: 1; font-family: "IBM Plex Sans", var(--text); font-size: .85rem; padding: .3em .75em; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.fx-case[data-k="dexz"] .fx-case-logo { background: #111; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.fx-case-plus { position: relative; z-index: 1; flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(150deg, #6E9BFF, #1F4FC4 60%, #0B2470); box-shadow: 0 8px 24px rgba(31,79,196,.35); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.fx-case-plus svg { width: 22px; height: 22px; }
.fx-case.open .fx-case-plus { transform: rotate(45deg); }

/* opening: the card grows to show everything inside it */
.fx-case-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s cubic-bezier(.2,.8,.2,1); }
.fx-case.open .fx-case-body { grid-template-rows: 1fr; }
.fx-case-in { min-height: 0; overflow: hidden; }
.fx-case-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(18px, 2.4vw, 34px); }
.fx-case-line { margin: 0; max-width: 70ch; line-height: 1.8; opacity: .85; }
.fx-case-x { flex: none; display: inline-flex; align-items: center; gap: .5em; padding: .55em 1.1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.25); color: inherit; font: inherit; font-size: .9rem; cursor: pointer; transition: background .3s ease, border-color .3s ease; }
.fx-case-x:hover { background: var(--fx); border-color: var(--fx); }
.fx-case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px clamp(18px, 2.4vw, 34px) clamp(22px, 2.4vw, 34px); }
.fx-case-grid .post { border-radius: 14px; opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.fx-case.open .fx-case-grid .post { opacity: 1; transform: none; }
.fx-case.open .fx-case-grid .post:nth-child(2) { transition-delay: .05s; } .fx-case.open .fx-case-grid .post:nth-child(3) { transition-delay: .1s; }
.fx-case.open .fx-case-grid .post:nth-child(4) { transition-delay: .15s; } .fx-case.open .fx-case-grid .post:nth-child(5) { transition-delay: .2s; }
.fx-case.open .fx-case-grid .post:nth-child(6) { transition-delay: .25s; } .fx-case.open .fx-case-grid .post:nth-child(7) { transition-delay: .3s; }
.fx-case.open .fx-case-grid .post:nth-child(8) { transition-delay: .35s; }
@media (max-width: 900px) {
  .fx-case-thumbs { display: none; }
  .fx-case-count { display: none; }
  .fx-case-head { height: auto; min-height: 110px; padding-block: 16px; }
  .fx-case-meta { white-space: normal; font-size: .8rem; }
  .fx-case-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .fx-case-bar { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .fx-case-body, .fx-case-grid .post, .fx-case-thumbs img, .fx-case-plus { transition: none; } }

/* ---------- hero: the printed pieces float in a deep blue space (no clicks, just there to look at) ---------- */
.fx-hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; margin-top: calc(var(--bar-h) * -1); padding-top: var(--bar-h); }
.fx-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; perspective: 1100px;
  background: radial-gradient(ellipse 70% 60% at 70% 30%, #1F4FC4 0%, #0E2C86 38%, #071338 75%), #071338; }
.fx-sky::before { content: ""; position: absolute; width: 46vmax; height: 46vmax; left: -12vmax; bottom: -20vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(61,255,65,.28), transparent); }
.fx-sky::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, var(--ground) 0%, rgba(7,19,56,.7) 30%, rgba(7,19,56,.15) 62%, transparent 100%); }
.fx-space { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.fx-fl { position: absolute; left: var(--x); top: var(--y); width: calc(var(--w) * 1vw); max-width: 320px; translate: -50% -50%; transform: translateZ(var(--z)); transform-style: preserve-3d; }
.fx-fl img { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(0,0,0,.5)); animation: fx-float 9s ease-in-out infinite alternate; animation-delay: var(--d); will-change: transform; }
.fx-far img { opacity: .55; filter: none; }
@keyframes fx-float { 0% { transform: translate3d(0, 0, 0) rotate(-4deg); } 50% { transform: translate3d(1.2vw, -2.2vh, 0) rotate(3deg); } 100% { transform: translate3d(-1vw, 1.6vh, 0) rotate(-1deg); } }
.fx-hero .fx-title { text-shadow: 0 10px 50px rgba(4,10,40,.6); }
.fx-hot { background: linear-gradient(100deg, #BFD3FF 0%, #6E9BFF 35%, #3DFF41 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.fx-eyebrow::before { background: var(--fx-g); box-shadow: 0 0 0 4px rgba(61,255,65,.25), 0 0 18px var(--fx-g); }
.fx-cue span { background: var(--fx-g); }
@media (max-width: 900px) {
  .fx-hero { align-items: end; }
  .fx-fl { width: calc(var(--w) * 2.3vw); top: calc(var(--y) * .9); }
  .fx-mob-off { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fx-fl img { animation: none; } }

/* ---------- identity boards and printed pieces inside the cards ---------- */
.fx-case-mono { display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: #0E2C86; }
.fx-case-thumbs img.fx-thumb-board { width: min(100%, 360px); height: 80%; aspect-ratio: auto; object-fit: cover; object-position: 50% 0%; margin: 0; transform: rotate(-3deg); transition: transform .6s cubic-bezier(.2,.8,.2,1), object-position 2.4s ease; }
.fx-case-head:hover .fx-case-thumbs img.fx-thumb-board { margin: 0; transform: rotate(0deg) translateY(-4px); object-position: 50% 100%; }
.fx-thumbs-merch img { aspect-ratio: 1; object-fit: contain; background: rgba(255,255,255,.06); padding: 6px; }
.fx-case-plus { background: linear-gradient(150deg, #6E9BFF, #1F4FC4 60%, #0B2470); }
.fx-case.open .fx-case-plus { background: var(--fx-g); color: #071338; }
.fx-board { display: block; width: min(100% - 2 * clamp(18px, 2.4vw, 34px), 900px); margin: 22px auto clamp(22px, 2.4vw, 34px); padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.04); cursor: zoom-in; opacity: 0; transform: translateY(24px); transition: opacity .5s ease .1s, transform .6s cubic-bezier(.2,.8,.2,1) .1s; }
.fx-case.open .fx-board { opacity: 1; transform: none; }
.fx-board img { display: block; width: 100%; height: auto; min-height: 200px; }
.fx-case-grid .fx-piece { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, rgba(110,155,255,.22), rgba(255,255,255,.03) 70%); }
.fx-piece img { object-fit: contain; padding: 10%; }
.fx-tag { position: absolute; inset: auto 10px 10px; font-size: .85rem; font-weight: 600; text-align: start; opacity: .9; }
.fx-svc-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .fx-svc-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fx-svc-row { grid-template-columns: 1fr; } }
.fx-cta-in { background: linear-gradient(130deg, #2D63E8 0%, #1F4FC4 50%, #0B2470 100%); }
.fx-cta-in::before { content: ""; position: absolute; width: 40%; aspect-ratio: 1; inset-inline-start: -10%; bottom: -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(61,255,65,.35), transparent); pointer-events: none; }
.fx-btn { background: var(--fx-g); color: #071338; }
.fx-link { color: var(--fx-g); }

/* five services: two wide cards on top (identity design leads), three below */
@media (min-width: 1101px) {
  .fx-svc-row { grid-template-columns: repeat(6, 1fr); }
  .fx-svc { grid-column: span 2; }
  .fx-svc:nth-child(-n+2) { grid-column: span 3; }
}
.fx-svc-id { box-shadow: inset 0 0 0 1px rgba(61,255,65,.35); }
.fx-svc-id .fx-svc-ic { background: linear-gradient(150deg, #3DFF41, #1FB84A 60%, #0B6B2E); color: #071338; box-shadow: 0 10px 30px rgba(61,255,65,.3); }
@media (max-width: 1100px) and (min-width: 641px) { .fx-svc-id { grid-column: 1 / -1; } }

/* ---------- identities: one card per brand. Closed, its logo draws itself, takes its colours and goes back to nothing, on a loop.
   Tapped, the card spans the full row and shows the identity pieces. ---------- */
.fx-brands { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.fx-brand.client { padding: 0; }
.fx-brand { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .4s ease; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.fx-brand:hover { box-shadow: inset 0 0 0 1px rgba(61,255,65,.5), 0 20px 50px rgba(31,79,196,.25); }
.fx-brand-head { display: flex; align-items: baseline; gap: .6em; padding: 14px 16px; }
.fx-brand .fx-brand-name { font-family: var(--text); font-size: 1.1rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; margin: 0; }
.fx-brand-sec { font-size: .85rem; opacity: .65; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-brand-plus { position: relative; width: 26px; height: 26px; flex: none; align-self: center; border-radius: 50%; background: linear-gradient(150deg, #6E9BFF, #1F4FC4 60%, #0B2470); transition: transform .4s ease, background .3s ease; }
.fx-brand-plus::before, .fx-brand-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: #fff; border-radius: 2px; }
.fx-brand-plus::after { transform: rotate(90deg); }
.fx-brand.open .fx-brand-plus { transform: rotate(45deg); background: var(--fx-g); }
.fx-brand.open .fx-brand-plus::before, .fx-brand.open .fx-brand-plus::after { background: #071338; }

/* the stage where the logo draws */
.fx-brand-stage { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; background: rgba(4,10,30,.35); color: inherit; font: inherit; cursor: pointer; overflow: hidden; }
.fx-lg-paper { position: absolute; inset: 0; background: #fff; clip-path: circle(0% at 50% 50%); }
.fx-lg { position: relative; width: 64%; height: 56%; display: grid; place-items: center; }
.fx-lg svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fx-lg > img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fx-lg-draw { fill: none; stroke: #F2F2EE; stroke-linejoin: round; }
.fx-brand-more { position: absolute; inset-inline-start: 12px; bottom: 12px; font-size: .8rem; font-weight: 700; padding: .4em .9em; border-radius: 999px; background: #071338; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.fx-brand-stage:hover .fx-brand-more, .fx-brand-stage:focus-visible .fx-brand-more { opacity: 1; transform: none; }
@media (hover: none) { .fx-brand-more { opacity: .9; transform: none; } }

/* one 15 s loop: slow draw in white lines, the white paper opens and the logo takes its colours, holds;
   then the logo turns white on its brand colour, holds; then everything goes back to zero */
.fx-brand.run .fx-lg-draw path { animation: fx-lg-line var(--t, 15s) var(--dl, 0s) infinite; }
.fx-brand.run .fx-lg-fill { animation: fx-lg-fill var(--t, 15s) var(--dl, 0s) infinite; }
.fx-brand.run .fx-lg-paper { animation: fx-lg-paper var(--t, 15s) var(--dl, 0s) infinite; }
.fx-brand.run .fx-lg > img { animation: fx-lg-wipe var(--t, 15s) var(--dl, 0s) infinite; }
.fx-lg-draw path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.fx-lg-fill { opacity: 0; }
@keyframes fx-lg-line {
  0% { stroke-dashoffset: 1; stroke: #F2F2EE; opacity: 1; animation-timing-function: cubic-bezier(.4,0,.4,1); }
  30% { stroke-dashoffset: 0; stroke: #F2F2EE; opacity: 1; }
  36% { stroke-dashoffset: 0; stroke: var(--bc); opacity: 1; }
  42%, 100% { stroke-dashoffset: 0; stroke: var(--bc); opacity: 0; }
}
@keyframes fx-lg-paper {
  0%, 30% { clip-path: circle(0% at 50% 50%); background-color: #fff; animation-timing-function: cubic-bezier(.6,0,.3,1); }
  38% { clip-path: circle(75% at 50% 50%); background-color: #fff; }
  60% { clip-path: circle(75% at 50% 50%); background-color: #fff; animation-timing-function: ease-in-out; }
  65%, 86% { clip-path: circle(75% at 50% 50%); background-color: var(--bc); animation-timing-function: cubic-bezier(.6,0,.3,1); }
  95%, 100% { clip-path: circle(0% at 50% 50%); background-color: var(--bc); }
}
@keyframes fx-lg-fill {
  0%, 35% { opacity: 0; filter: none; }
  42%, 60% { opacity: 1; filter: none; animation-timing-function: ease-in-out; }
  65%, 84% { opacity: 1; filter: brightness(0) invert(1); }
  91%, 100% { opacity: 0; filter: brightness(0) invert(1); }
}
@keyframes fx-lg-wipe {
  0%, 12% { clip-path: inset(0 100% 0 0); opacity: 1; animation-timing-function: cubic-bezier(.45,0,.4,1); }
  38%, 84% { clip-path: inset(0 0 0 0); opacity: 1; }
  91%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
/* the one logo kept as a picture (white backdrop) stays on white paper */
.fx-brand.run .fx-brand-stage:has(.fx-lg > img) .fx-lg-paper { animation-name: fx-lg-paper-w; }
@keyframes fx-lg-paper-w {
  0%, 8% { clip-path: circle(0% at 50% 50%); animation-timing-function: cubic-bezier(.6,0,.3,1); }
  16%, 86% { clip-path: circle(75% at 50% 50%); animation-timing-function: cubic-bezier(.6,0,.3,1); }
  95%, 100% { clip-path: circle(0% at 50% 50%); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-brand .fx-lg-fill, .fx-brand .fx-lg > img { opacity: 1; animation: none !important; }
  .fx-brand .fx-lg-paper { clip-path: none; animation: none !important; }
  .fx-brand .fx-lg-draw { display: none; }
}

/* opened: the card takes the whole row, logo on one side, the pieces on the other */
.fx-brand-body { display: none; }
.fx-brand.open { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-rows: auto 1fr; box-shadow: inset 0 0 0 1px rgba(61,255,65,.5), 0 30px 70px rgba(4,10,40,.5); }
.fx-brand.open .fx-brand-head { grid-column: 1; }
.fx-brand.open .fx-brand-stage { grid-column: 1; grid-row: 2; align-self: start; cursor: default; }
.fx-brand.open .fx-brand-more { display: none; }
.fx-brand.open .fx-brand-body { display: block; grid-column: 2; grid-row: 1 / 3; padding: 14px 14px 14px 0; animation: fx-in .5s cubic-bezier(.2,.8,.2,1); }
[dir="ltr"] .fx-brand.open .fx-brand-body { padding: 14px 0 14px 14px; }
@keyframes fx-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fx-brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 6px; border-radius: 12px; overflow: hidden; }
.fx-brand .post { aspect-ratio: 1; border-radius: 0; background: rgba(255,255,255,.03); }
.fx-brand .post.fx-bi-hero, .fx-brand .post.fx-bi-wide { grid-column: span 2; aspect-ratio: auto; }
.fx-brand .post img { width: 100%; height: 100%; object-fit: cover; }
.fx-brand-x { display: block; margin: 12px 0 0 auto; padding: .55em 1.3em; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .9rem; cursor: pointer; }
[dir="rtl"] .fx-brand-x { margin: 12px auto 0 0; }
.fx-brand-x:hover { background: var(--fx-g); color: #071338; border-color: var(--fx-g); }
@media (max-width: 1100px) { .fx-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .fx-brand.open { grid-template-columns: minmax(0, 1fr); }
  .fx-brand.open .fx-brand-stage { grid-column: 1; grid-row: auto; aspect-ratio: 16 / 9; }
  .fx-brand.open .fx-brand-body, [dir="ltr"] .fx-brand.open .fx-brand-body { grid-column: 1; grid-row: auto; padding: 6px; }
  .fx-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-brand .post.fx-bi-hero, .fx-brand .post.fx-bi-wide { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .fx-brands { grid-template-columns: minmax(0, 1fr); } }
.fx-brand-head { cursor: pointer; }

/* ---------- phones: case cards. .c-name (site.css) carries grid-area:name, which on a phone pushed the name and the
   tags into two thin columns. Here they stack: the name, then its tags under it, using the full width ---------- */
@media (max-width: 900px) {
  .fx-case-head { gap: 12px; padding-inline: 16px; }
  .fx-case-id { gap: 12px; }
  .fx-case-words { flex: 1; grid-template-columns: minmax(0, 1fr); }
  .fx-case-name { grid-area: auto; font-size: 1.2rem; text-wrap: pretty; }
  .fx-case-meta { grid-area: auto; line-height: 1.5; }
  .fx-case-n { font-size: 1.35rem; }
  .fx-case-logo { width: 46px; height: 46px; padding: 6px; border-radius: 12px; }
  .fx-case-plus { width: 40px; height: 40px; }
}
:root[dir="rtl"] .fx-case-name { text-align: right; }
