/* ==========================================================================
   Formium Alliance — "Our Work" hub (formium-work.html)
   Four cards, nothing else, in the home page's own language: black, warm bottom glow, white mono pills,
   outline icons, Geist. Everything is scoped under .fw so it cannot leak into other pages.
   ========================================================================== */
body.fw-body { background: #000; }
body.fw-body footer, body.fw-body .top-nav { display: none !important; }
html:has(body.fw-body), body.fw-body { overflow-x: clip !important; }

.fw {
  --ease: cubic-bezier(.16, 1, .3, 1);
  --white: #fff; --mute: rgba(255, 255, 255, .6); --faint: rgba(255, 255, 255, .38); --line: rgba(255, 255, 255, .12);
  position: relative; padding: 20px; background: #000; min-height: 100vh; min-height: 100svh; display: flex; color: #fff;
  font-family: var(--fa-font, 'Geist', system-ui, sans-serif);
}
.fw *, .fw *::before, .fw *::after { box-sizing: border-box; }
.fw h1, .fw h2, .fw h3, .fw p { margin: 0; padding: 0; }
.fw a { color: inherit; text-decoration: none; }
.fw a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.fw .fw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the big rounded panel, exactly like the home page's "Our Digital Services" */
.fw-panel { position: relative; flex: 1; display: flex; border-radius: 32px; background: #1a1a1c; overflow: hidden; isolation: isolate; padding: 132px 20px 20px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); opacity: 0; transform: scale(.985); animation: fw-panel 1.1s var(--ease) .05s forwards; }
.fw-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; z-index: -2; opacity: .38; }
.fw-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 42%, rgba(0, 0, 0, 0) 100%), radial-gradient(75% 34% at 50% 112%, rgba(214, 150, 110, .42), rgba(120, 90, 80, .16) 55%, transparent 80%); }
@keyframes fw-panel { to { opacity: 1; transform: none; } }

.fw-grid { position: relative; flex: 1; width: 100%; max-width: 1560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }

/* ---------- a card ---------- */
.fw-card {
  --mx: 50%; --my: 100%; --lift: 0;
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 520px; padding: 22px 26px 26px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: rgba(10, 10, 11, .46); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transform: translateY(46px) scale(.97); filter: blur(10px);
  animation: fw-in 1.2s var(--ease) calc(.35s + var(--i, 0) * .11s) forwards;
  transition: border-color .6s var(--ease), background-color .6s var(--ease), transform .8s var(--ease), box-shadow .8s var(--ease);
}
@keyframes fw-in { to { opacity: 1; transform: none; filter: blur(0); } }
/* warm light that rises from the bottom and follows the pointer */
.fw-card::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; transition: opacity .8s var(--ease);
  background:
    radial-gradient(60% 46% at var(--mx) var(--my), rgba(255, 190, 140, .42), rgba(190, 120, 90, .2) 45%, transparent 75%),
    radial-gradient(90% 40% at 50% 112%, rgba(214, 150, 110, .5), rgba(120, 90, 80, .22) 55%, transparent 80%); }
.fw-card::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(260px 260px at var(--mx) var(--my), rgba(255, 255, 255, .10), transparent 70%); }
.fw-card:hover, .fw-card:focus-visible { transform: translateY(-8px); border-color: rgba(255, 255, 255, .34); background: rgba(14, 14, 15, .6); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04); }
.fw-card:hover::before, .fw-card:focus-visible::before { opacity: 1; }
.fw-card:hover::after, .fw-card:focus-visible::after { opacity: 1; }
.fw-card:active { transform: translateY(-3px) scale(.99); }

.fw-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.fw-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 99px; background: #fff; color: #1a1a1c; font-family: var(--fa-mono, 'Geist Mono', ui-monospace, monospace); font-size: var(--fa-micro, 12px); line-height: 1; font-weight: 450; }
.fw-no { font-family: var(--fa-mono, 'Geist Mono', ui-monospace, monospace); font-size: var(--fa-micro, 12px); color: var(--faint); letter-spacing: .02em; }

.fw-ico { margin: auto 0; padding-top: 24px; display: grid; place-items: center; width: 100%; }
.fw-ico span { display: block; font-size: 64px; line-height: 1; color: #fff; transition: transform 1s var(--ease), opacity .6s; opacity: .92; }
.fw-card:hover .fw-ico span { transform: translateY(-6px) rotate(-8deg) scale(1.1); opacity: 1; }

.fw-txt { width: 100%; max-width: 330px; }
.fw .fw-card h3 { font-size: var(--fa-subtitle, clamp(20px, calc(17.6px + .6vw), 26px)) !important; line-height: var(--fa-subtitle-lh, 1.22) !important; letter-spacing: var(--fa-subtitle-ls, -.02em) !important; font-weight: 450 !important; color: #fff; }
.fw-txt p { margin-top: 10px; font-size: var(--fa-body, 16px); line-height: 1.5; color: var(--mute); transition: color .6s; }
.fw-card:hover .fw-txt p { color: rgba(255, 255, 255, .82); }

.fw-more { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: var(--fa-small, 14px); background: transparent; transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s, gap .6s var(--ease); }
.fw-more svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.fw-card:hover .fw-more { background: #fff; color: #1a1a1c; border-color: #fff; gap: 14px; }
.fw-card:hover .fw-more svg { transform: translateX(2px); }

/* narrower screens */
@media (max-width: 1180px) {
  .fw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-card { min-height: 380px; }
}
@media (max-width: 640px) {
  .fw { padding: 10px; }
  .fw-panel { padding: 104px 10px 10px; border-radius: 26px; }
  .fw-grid { grid-template-columns: 1fr; gap: 10px; }
  .fw-card { min-height: 0; padding: 18px 18px 20px; border-radius: 24px; align-items: flex-start; text-align: left; }
  .fw-ico { margin: 22px 0 22px; padding: 0; justify-items: start; }
  .fw-ico span { font-size: 46px; }
  .fw-more { margin-top: 20px; }
}
@media (hover: none) { .fw-card:hover { transform: none; } .fw-card::before { opacity: .8; } }
@media (prefers-reduced-motion: reduce) {
  .fw-panel, .fw-card { animation-duration: .01ms !important; animation-delay: 0s !important; opacity: 1; transform: none; filter: none; }
  .fw-card, .fw-card *, .fw-more { transition-duration: .01ms !important; }
}
