/* modules/work.css: built by site/work-src/build.mjs from kit.css + work.body.css. Edit the sources, not this file. */
/* ==== AK work kit styles v1 (same block in every modules/*.css of the work track; source site/work-src/kit.css) ==== */
.akw-eng { margin: 0; font-size: 12px; font-weight: 560; letter-spacing: .11em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--dim, rgba(241, 240, 232, .62)); }
.akw-eng:lang(ar), [lang="ar"] .akw-eng, html[dir="rtl"] .akw-eng { letter-spacing: 0; text-transform: none; font-size: 13px; }
.akw-eng b { color: var(--mint, #A4E6AF); font-weight: 600; }
.akw-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--key, #F4D3A1); border: 1px solid rgba(244, 211, 161, .4); border-radius: 4px; padding: 1px 6px; line-height: 1.5; }
html[dir="rtl"] .akw-tag { letter-spacing: 0; text-transform: none; }
.akw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line, rgba(241, 240, 232, .16)); background: rgba(16, 26, 20, .55); color: var(--text, #F1F0E8); font: inherit; font-size: 14px; font-weight: 560; text-decoration: none; cursor: pointer; white-space: nowrap; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.akw-btn--solid { background: var(--text, #F1F0E8); color: var(--ground, #080E0B); border-color: transparent; }
.akw-btn--round { width: 44px; padding: 0; font-size: 20px; line-height: 1; }
.akw-btn[aria-pressed="true"], .akw-btn[aria-current="page"], .akw-btn[aria-current="true"] { background: var(--deep, #173525); border-color: rgba(164, 230, 175, .45); color: var(--text, #F1F0E8); }
@media (hover: hover) and (pointer: fine) { .akw-btn:hover { border-color: rgba(164, 230, 175, .5); } .akw-btn--solid:hover { background: #fff; } }
.akw-btn:focus-visible { outline: 2px solid var(--mint, #A4E6AF); outline-offset: 3px; }
html[dir="rtl"] .akw-btn--round > span[aria-hidden] { transform: scaleX(-1); }

/* a frame: poster over a plate that carries the title */
.akw-card .ak-card__media, .akw-film__media, .akw-tile__media { background: var(--tint, var(--surface, #101A14)); }
.akw-plate { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 9%; background: radial-gradient(120% 90% at 80% 0%, rgba(42, 100, 70, .45), transparent 62%), linear-gradient(160deg, var(--deep, #173525), var(--surface, #101A14) 72%); container-type: inline-size; }
.akw-plate > span { font-size: clamp(11px, 9cqi, 22px); line-height: 1.2; font-weight: 640; color: rgba(241, 240, 232, .78); overflow-wrap: break-word; word-break: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.akw-plate > span:lang(ar) { line-height: 1.5; font-weight: 520; }
.akw-card .ak-card__media > img, .akw-film__media > img, .akw-tile__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.akw-film__media > .ak-loop, .akw-tile__media > .ak-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.akw-film__media > .ak-loop.is-on { opacity: 1; }
.ak-card.is-playing .akw-tile__media > .ak-loop { opacity: 1; }
.akw-cap { display: grid; gap: 3px; padding-top: 10px; }
.akw-cap .ak-card__title { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.akw-cap .ak-card__title:lang(ar) { line-height: 1.55; font-weight: 520; overflow-wrap: break-word; }
.akw-cap .ak-card__meta { font-size: 13px; color: var(--dim, rgba(241, 240, 232, .62)); }
.akw-cap .akw-tag { justify-self: start; }
/* a title in the other script keeps its own direction but lines up with the page */
:is(.akw-cap, .akw-sel__lt, .akw-film__info, .akw-orb__cap, .akw-reels__head, .akw-strip, .ak-project__head) [dir="auto"] { text-align: left; }
html[dir="rtl"] :is(.akw-cap, .akw-sel__lt, .akw-film__info, .akw-orb__cap, .akw-reels__head, .akw-strip, .ak-project__head) [dir="auto"] { text-align: right; }
.ak-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* chips: the curated and dynamic categories */
.akw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 var(--gut); list-style: none; }
.akw-chips > li { display: contents; }
.akw-chips > li > span { display: none; }
.akw-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line, rgba(241, 240, 232, .14)); background: rgba(16, 26, 20, .5);
  color: var(--dim, rgba(241, 240, 232, .72)); font: inherit; font-size: 14px; font-weight: 560; text-decoration: none; cursor: pointer; white-space: nowrap; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 140ms var(--ease-out, cubic-bezier(.22, 1, .36, 1)); }
.akw-chip:active { transform: scale(.97); }
.akw-chip span { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--faint, rgba(241, 240, 232, .45)); }
.akw-chip[aria-current="page"], .akw-chip[aria-pressed="true"] { color: var(--text, #F1F0E8); background: var(--deep, #173525); border-color: rgba(164, 230, 175, .45); }
.akw-chip[aria-current="page"] span, .akw-chip[aria-pressed="true"] span { color: var(--mint, #A4E6AF); }
@media (hover: hover) and (pointer: fine) { .akw-chip:hover { color: var(--text, #F1F0E8); border-color: rgba(164, 230, 175, .4); } }
.akw-chip:focus-visible { outline: 2px solid var(--mint, #A4E6AF); outline-offset: 3px; }
@media (max-width: 759px) { .akw-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 4px; } .akw-chips::-webkit-scrollbar { display: none; } .akw-chip { scroll-snap-align: start; } }
/* ---------- motion personality: cinematic for camera moves, a spring with a slight overshoot for settling, a small pop for things that arrive.
   Under reduced motion or Pause every curve falls back to the cinematic one (no overshoot). ---------- */
:root {
  --akw-cine: cubic-bezier(.22, 1, .36, 1);
  --akw-spring: cubic-bezier(.3, 1.35, .5, 1);
  --akw-pop: cubic-bezier(.3, 1.6, .55, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --akw-spring: linear(0, 0.042, 0.141, 0.268, 0.407, 0.54, 0.659, 0.763, 0.846, 0.912, 0.961, 0.995, 1.017, 1.03, 1.037, 1.038, 1.036, 1.032, 1.027, 1.022, 1.017, 1.012, 1.008, 1.005, 1.003, 1.001, 1);
    --akw-pop: linear(0, 0.053, 0.18, 0.344, 0.519, 0.684, 0.827, 0.941, 1.025, 1.08, 1.109, 1.119, 1.114, 1.1, 1.081, 1.06, 1.04, 1.023, 1.009, 0.998, 0.991, 0.987, 0.986, 0.986, 0.988, 0.99, 0.993, 0.995, 0.997, 0.999, 1);
  }
}
html.ak-reduced, html.ak-paused { --akw-spring: var(--akw-cine); --akw-pop: var(--akw-cine); }
/* feedback: press gives at once, release springs back; hover lifts a frame a little */
.akw-btn, .akw-chip { transition: transform 520ms var(--akw-spring), background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.akw-btn:active, .akw-chip:active { transform: scale(.95); transition-duration: 90ms; transition-timing-function: ease-out; }
@media (hover: hover) and (pointer: fine) { .akw-btn:hover, .akw-chip:hover { transform: scale(1.03); } .akw-btn:active, .akw-chip:active { transform: scale(.95); } }
.akw-card .ak-card__media { transition: transform 620ms var(--akw-spring), box-shadow 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .akw-card:not(.akw-tile):hover .ak-card__media { transform: translateY(-4px) scale(1.012) rotate(var(--akw-tilt, 0deg)); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .9); }
}
.akw-card:not(.akw-tile) .ak-card__link:active .ak-card__media { transform: scale(.982); transition-duration: 110ms; transition-timing-function: ease-out; }
html.ak-reduced .akw-card .ak-card__media, html.ak-reduced .akw-btn, html.ak-reduced .akw-chip { transition: none; transform: none !important; }

/* ==== Work page ==== */
.akw-work { position: relative; padding: clamp(96px, 14vh, 150px) 0 clamp(64px, 12vh, 140px); --gut: max(20px, 4vw); }
.akw-work__head { padding: 0 var(--gut); display: grid; gap: 8px; }
.akw-work__h { margin: 0; font-size: clamp(2.6rem, 1.4rem + 5vw, 6.4rem); font-weight: 780; font-stretch: 112%; line-height: .92; letter-spacing: -0.025em; }
.akw-work__h:lang(ar), html[dir="rtl"] .akw-work__h { letter-spacing: 0; line-height: 1.2; font-stretch: 100%; }
.akw-work .ak-filter.akw-chips { margin-top: clamp(14px, 3vh, 28px); }
.akw-work__dyn { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 12px; }
.akw-chips--small .akw-chip { min-height: 38px; padding: 0 13px; font-size: 13px; }
.akw-work .akw-orb { margin-top: clamp(8px, 2vh, 20px); }

.akw-grid { position: relative; margin: clamp(28px, 6vh, 64px) var(--gut) 0; }
.akw-gcard.ak-card { position: absolute; left: 0; top: 0; margin: 0; }
.akw-gcard[hidden] { display: none !important; }
.akw-gcard .ak-card__media { border-radius: 8px; }
.akw-gcard .ak-card__link:focus-visible { outline: none; }
.akw-gcard .ak-card__link:focus-visible .ak-card__media { outline: 2px solid var(--mint, #A4E6AF); outline-offset: 4px; }
.akw-gcard .ak-card__media { touch-action: pan-y; }
.akw-ghost { position: absolute; left: 0; top: 0; pointer-events: none; }
.akw-skim { position: absolute; inset: 0; z-index: 2; background-repeat: no-repeat; opacity: 0; transition: opacity 160ms ease; pointer-events: none; }
.akw-skim.is-on { opacity: 1; }
.akw-skim.is-bar { background: none; }
.akw-skim > i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--mint, #A4E6AF); transform-origin: 0 50%; transform: scaleX(0); }
html[dir="rtl"] .akw-skim > i { transform-origin: 100% 50%; }
.akw-work__none { margin: 40px var(--gut) 0; padding: clamp(24px, 5vw, 56px); border-radius: 14px; border: 1px dashed rgba(241, 240, 232, .2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.akw-work__none[hidden] { display: none; }
.akw-work__none p { margin: 0; font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); font-weight: 640; }

@media (max-width: 759px) {
  .akw-work__dyn { gap: 10px; }
  .akw-gcard .akw-cap .ak-card__title { font-size: 14px; }
}

/* ---- polish: the page header is a scene, not a heading over a grid ---- */
.akw-work { isolation: isolate; }
.akw-work__amb { position: absolute; left: 0; right: 0; top: 0; height: min(130vh, 1300px); z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side at 50% 42%, #000 20%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 42%, #000 20%, transparent 100%); opacity: .42; }
.akw-work__amb > img { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(80px) saturate(1.2) brightness(.8); }
.akw-work__head { position: relative; padding-bottom: 18px; }
.akw-work__head::after { content: ""; position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 9px;
  background: linear-gradient(90deg, rgba(241, 240, 232, .3), rgba(241, 240, 232, .06)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(241, 240, 232, .22) 0 1px, transparent 1px 24px) 0 100% / 100% 6px no-repeat; }
html[dir="rtl"] .akw-work__head::after { background: linear-gradient(270deg, rgba(241, 240, 232, .3), rgba(241, 240, 232, .06)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(270deg, rgba(241, 240, 232, .22) 0 1px, transparent 1px 24px) 0 100% / 100% 6px no-repeat; }
.akw-work__h { font-size: clamp(3rem, 1.4rem + 6.4vw, 8rem); line-height: .86; letter-spacing: -0.035em; }
/* depth in the grid: lit near the middle, the rest waits darker; columns drift with the scroll */
.akw-gcard .ak-card__media { translate: 0 var(--py, 0px); filter: brightness(calc(1 - var(--f, 0) * .34)) saturate(calc(1 - var(--f, 0) * .3)); }
.akw-gcard .akw-cap { translate: 0 var(--py, 0px); opacity: calc(1 - var(--f, 0) * .35); }
html.ak-reduced .akw-gcard .ak-card__media, html.ak-reduced .akw-gcard .akw-cap { translate: none; filter: none; opacity: 1; }
