/* PANE scene 06, Creative arsenal (modules/case.js). Scoped to .akc. */
.akc {
  --akc-ground: var(--pane-ground, #080E0B);
  --akc-green: var(--pane-green-1, #173525);
  --akc-green-2: var(--pane-green-2, #2A6446);
  --akc-mint: var(--pane-mint, #A4E6AF);
  --akc-paper: var(--pane-paper, #F1F0E8);
  --akc-warm: var(--pane-warm, #F4D3A1);
  position: relative;
  background: var(--akc-ground);
  color: var(--akc-paper);
  isolation: isolate;
}
.akc > [hidden] { display: none !important; }
/* the scene is full-bleed: the stage is the frame (overrides the section padding the skin gives .ak-case) */
.akc.akc { padding: 0; }
.akc--reduced.akc { padding-block-end: 8vh; }
.akc__track { position: relative; height: 420vh; height: 420svh; }
.akc[data-variant="phone"] .akc__track { height: 380vh; height: 380svh; }
.akc__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  contain: layout paint;
}
.akc__canvas, .akc__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  /* the render's edges dissolve into the page ground */
  -webkit-mask-image: radial-gradient(130% 110% at 50% 52%, #000 58%, transparent 100%);
          mask-image: radial-gradient(130% 110% at 50% 52%, #000 58%, transparent 100%);
}
.akc__poster { object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.akc--nodata .akc__poster { opacity: 1; }
.akc--nodata .akc__canvas { display: none; }
.akc[data-variant="phone"] .akc__poster { object-fit: contain; }

/* heading block sits over the stage, inline-start */
.akc__head {
  position: absolute; z-index: 3;
  /* clears the floating site bar */
  inset-block-start: var(--akc-top, clamp(84px, 12vh, 120px)); inset-inline-start: clamp(16px, 5vw, 72px);
  max-inline-size: min(30ch, 40vw);
  pointer-events: none;
}
/* the heading opens the scene, then steps back so the arrangement has the frame */
.akc__head { transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.akc--late .akc__head { opacity: 0; transform: translateY(-8px); }
.akc__kicker { margin: 0 0 .5rem; font: 500 .75rem/1 var(--pane-mono, ui-monospace, monospace); letter-spacing: .14em; color: var(--akc-mint); opacity: .8; }
.akc__title { margin: 0; font-size: clamp(1.75rem, 3.6vw, 3.25rem); line-height: 1.02; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.akc__lede { margin: .75rem 0 0; font-size: clamp(.9rem, 1.1vw, 1.05rem); line-height: 1.45; color: color-mix(in srgb, var(--akc-paper) 72%, transparent); }
:lang(ar) .akc__title { letter-spacing: 0; line-height: 1.2; }
.akc__hint {
  position: absolute; z-index: 3; inset-block-end: clamp(20px, 5vh, 48px); inset-inline-start: 50%;
  transform: translateX(-50%); margin: 0;
  font: 500 .72rem/1 var(--pane-mono, ui-monospace, monospace); letter-spacing: .16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--akc-paper) 60%, transparent);
  transition: opacity .5s ease;
}
[dir="rtl"] .akc__hint { transform: translateX(50%); }
.akc--started .akc__hint, .akc--reduced .akc__hint, .akc--focus .akc__hint { opacity: 0; }

/* scroll hairline */
.akc__bar { position: absolute; z-index: 3; inset-inline: clamp(16px, 5vw, 72px); inset-block-end: 14px; height: 1px; background: color-mix(in srgb, var(--akc-paper) 14%, transparent); }
.akc__bar i { position: absolute; inset: 0; background: var(--akc-mint); transform-origin: left center; transform: scaleX(0); }
[dir="rtl"] .akc__bar i { transform-origin: right center; }
.akc--reduced .akc__bar { display: none; }

/* the line engraved inside the lid window (FIX9 point 8). A 400 x 210 box that case.js maps onto the window's
   projected corners each frame (matrix3d), so it rides the glass. Etched look: pale mint lines lit on the
   glass (screen blend keeps the render's own reflections), a dark lower lip for depth, revealed by a wipe. */
.akc__lid {
  position: absolute; top: 0; left: 0; z-index: 1; margin: 0;
  inline-size: 400px; block-size: 210px; box-sizing: border-box; padding: 26px 34px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transform-origin: 0 0; opacity: 0; pointer-events: none;
  color: color-mix(in srgb, var(--akc-mint) 78%, var(--akc-paper));
  font-family: var(--font-display, var(--font, inherit));
  text-align: center; text-transform: uppercase; letter-spacing: .12em;
  mix-blend-mode: screen;
  text-shadow: 0 1.5px 0 rgba(0, 0, 0, .55), 0 0 14px color-mix(in srgb, var(--akc-mint) 28%, transparent);
  -webkit-clip-path: inset(0 var(--akc-etch, 100%) 0 0); clip-path: inset(0 var(--akc-etch, 100%) 0 0);
  backface-visibility: hidden;
}
:lang(ar) .akc__lid, [dir="rtl"] .akc__lid { -webkit-clip-path: inset(0 0 0 var(--akc-etch, 100%)); clip-path: inset(0 0 0 var(--akc-etch, 100%)); letter-spacing: 0; text-transform: none; }
.akc__lid-icon { inline-size: 40px; block-size: 35px; margin-block-end: 8px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; opacity: .9; filter: drop-shadow(0 1.5px 0 rgba(0, 0, 0, .55)); }
.akc__lid-a, .akc__lid-b { display: block; font-size: 34px; line-height: 1.1; font-weight: 600; white-space: nowrap; }
.akc__lid-b { color: var(--akc-mint); }
:lang(ar) .akc__lid-a, :lang(ar) .akc__lid-b { font-size: 40px; line-height: 1.3; font-weight: 700; }
.akc--nodata .akc__lid { display: none; }
@media (forced-colors: active) { .akc__lid { mix-blend-mode: normal; } }

/* hotspots */
.akc__hots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.akc__hot {
  position: absolute; top: 0; left: 0; margin: 0; padding: 0;
  border: 0; background: transparent; color: inherit; cursor: pointer;
  border-radius: 22%;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.akc__hot.is-ready { opacity: 1; pointer-events: auto; }
.akc__hot-ring {
  position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--akc-mint) 0%, transparent);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.akc__hot:hover .akc__hot-ring, .akc__hot.is-open .akc__hot-ring {
  border-color: color-mix(in srgb, var(--akc-mint) 70%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--akc-mint) 10%, transparent), 0 0 32px color-mix(in srgb, var(--akc-mint) 22%, transparent);
}
.akc__hot:focus-visible { outline: none; }
.akc__hot:focus-visible .akc__hot-ring { border: 2px solid var(--akc-mint); box-shadow: 0 0 0 4px var(--akc-ground), 0 0 0 6px var(--akc-mint); }
.akc__hot-label {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px);
  white-space: nowrap; font-size: .78rem; line-height: 1; padding: .4rem .55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--akc-ground) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--akc-paper) 14%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.akc__hot-label b { font: 500 .68rem/1 var(--pane-mono, ui-monospace, monospace); color: var(--akc-mint); margin-inline-end: .25rem; }
.akc__hot:hover .akc__hot-label, .akc__hot.is-open .akc__hot-label, .akc__hot:focus-visible .akc__hot-label { opacity: 1; transform: translate(-50%, 0); }

/* role card: docked, glass */
.akc__card {
  position: absolute; z-index: 4;
  inset-inline-end: clamp(16px, 5vw, 72px); inset-block-end: clamp(88px, 11vh, 120px);   /* clears the floating WhatsApp CTA */
  inline-size: min(340px, calc(100% - 32px));
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.akc__card.is-open { opacity: 1; transform: none; }
.akc__card-in {
  padding: 1rem 1.1rem 1.1rem; border-radius: 16px;
  background: color-mix(in srgb, #0d1a14 66%, transparent);
  border: 1px solid color-mix(in srgb, var(--akc-paper) 14%, transparent);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 1px 0 color-mix(in srgb, var(--akc-paper) 10%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.akc__card-step { margin: 0 0 .6rem; font: 500 .7rem/1 var(--pane-mono, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--akc-mint); }
.akc__card-row { display: flex; align-items: center; gap: .7rem; }
.akc__card-logo { inline-size: 40px; block-size: 40px; object-fit: contain; flex: none; }
.akc__card-name { margin: 0; font-size: 1.25rem; line-height: 1.1; font-weight: 600; }
.akc__card-role { margin: .6rem 0 0; font-size: .95rem; line-height: 1.5; color: color-mix(in srgb, var(--akc-paper) 82%, transparent); }

/* phone: card docks at the bottom, heading smaller */
.akc[data-variant="phone"] .akc__head { max-inline-size: calc(100% - 32px); inset-block-start: var(--akc-top-phone, 76px); }
.akc[data-variant="phone"] .akc__title { font-size: clamp(1.5rem, 7vw, 2rem); }
.akc[data-variant="phone"] .akc__lede { display: none; }
.akc[data-variant="phone"] .akc__card { inset-block-start: auto; inset-block-end: 84px; inset-inline: 16px; inline-size: auto; }
.akc[data-variant="phone"] .akc__hot-label { display: none; }

/* reduced motion: one composed frame, no long track */
.akc--reduced .akc__track { height: auto; }
.akc--reduced .akc__stage { position: relative; height: min(100svh, 62.5vw + 120px); min-height: 520px; }
.akc--reduced[data-variant="phone"] .akc__stage { height: 100svh; }
.akc--reduced .akc__hot, .akc--reduced .akc__card, .akc--reduced .akc__hot-label, .akc--reduced .akc__poster { transition: none; }

@media (forced-colors: active) {
  .akc__hot-ring { border: 1px solid CanvasText; }
  .akc__card-in { background: Canvas; border-color: CanvasText; }
}

/* reduced motion: the heading leaves the stage and sits above the composed frame, in flow */
.akc.akc--reduced > .akc__head, .akc--reduced[data-variant] > .akc__head { position: relative; inset: auto; max-inline-size: 40ch; padding: var(--akc-top, clamp(84px, 12vh, 120px)) clamp(16px, 5vw, 72px) 0; opacity: 1; transform: none; }
.akc.akc--reduced[data-variant="phone"] > .akc__head { padding-top: var(--akc-top-phone, 76px); }

/* motion personality (work agent, 26 Nov): hotspots pop in as their module settles, the role card arrives with a small bounce
   and its lines follow in a short stagger. Reduced motion and Pause: no bounce, no stagger. */
/* FIX9: the pointer dot sits off the tile, on the side facing away from the case (--dx/--dy from case.js), at
   1.2x the distance to the tile's edge in that direction, beyond its tilted corners, so it never covers a logo,
   the printed label or a neighbour. */
.akc__hot-ring::after { content: ""; position: absolute; left: calc(50% + var(--dx, 0) * 52%); top: calc(50% + var(--dy, -1) * 52%); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--akc-mint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akc-mint) 18%, transparent), 0 0 14px color-mix(in srgb, var(--akc-mint) 45%, transparent);
  transform: scale(0); transition: transform 640ms var(--akw-pop, cubic-bezier(.3,1.6,.55,1)) calc(var(--k, 0) * 45ms); }
.akc__hot.is-ready .akc__hot-ring::after { transform: scale(1); }
.akc__hot:hover .akc__hot-ring::after, .akc__hot.is-open .akc__hot-ring::after { transform: scale(1.5); transition-delay: 0s; transition-duration: 420ms; }
.akc__hot:active .akc__hot-ring { transform: scale(.94); transition-duration: 90ms; }
.akc__card { transform: translateY(10px) scale(.96); transform-origin: 80% 100%; transition: opacity .22s ease, transform .62s var(--akw-pop, cubic-bezier(.3,1.6,.55,1)); }
.akc__card.is-open { transform: none; }
@keyframes akc-line { from { opacity: 0; transform: translateY(6px) scale(.98); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
.akc__card.is-open .akc__card-in > * { animation: akc-line .56s var(--akw-spring, cubic-bezier(.3,1.35,.5,1)) both; }
.akc__card.is-open .akc__card-in > :nth-child(2) { animation-delay: 50ms; }
.akc__card.is-open .akc__card-in > :nth-child(3) { animation-delay: 100ms; }
.akc--reduced .akc__hot-ring::after, html.ak-reduced .akc__hot-ring::after, html.ak-paused .akc__hot-ring::after { transition: none; }
.akc--reduced .akc__card-in > *, html.ak-reduced .akc__card-in > *, html.ak-paused .akc__card-in > * { animation: none !important; }
html.ak-reduced .akc__card, html.ak-paused .akc__card { transition: opacity .2s ease; }

/* the tools behind a step: small official marks with their names */
.akc__card-tools { list-style: none; margin: .75rem 0 0; padding: .7rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; border-top: 1px solid color-mix(in srgb, var(--akc-paper) 12%, transparent); }
.akc__card-tools li { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: color-mix(in srgb, var(--akc-paper) 78%, transparent); }
.akc__card-tools img { inline-size: 20px; block-size: 20px; object-fit: contain; }
