/* ============================================================
   Achraf Creative · red, white and black · liquid digital
   Built on the Adam Blue Plugins premium layer, new skin.
   ============================================================ */

:root {
  --bg0:   #0a0404;
  --bg1:   #170707;
  --red:   #e01414;
  --red2:  #ff4433;
  --glow:  rgba(224, 20, 20, .38);
  --paper: #f7f1ef;
  --ink:   #190a0b;
  --txt:   #fff4f2;
  --mut:   rgba(255, 244, 242, .60);
  --line:  rgba(255, 255, 255, .09);
  --nun:   "Nunito", system-ui, sans-serif;
  --int:   "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }   /* clip, not hidden: sticky survives */
body {
  background: var(--bg0);
  color: var(--txt);
  font-family: var(--int);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--red); color: #fff; }

/* ---------------- foundation polish · the ported ABP layer ---------------- */
/* page content rides above the fixed ember canvas; grain floats above both */
main { position: relative; z-index: 3; }
.emberfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* film grain: faint warm noise over everything, cursor stays crisp above */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  z-index: 210; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  filter: sepia(1) saturate(.7) hue-rotate(-18deg);   /* warm, not neutral */
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: grainjit .9s steps(5) infinite; }
}
.qa-flat body::after { animation: none; }
@keyframes grainjit {
  0%   { background-position: 0 0; }
  20%  { background-position: -34px 22px; }
  40%  { background-position: 24px -48px; }
  60%  { background-position: -58px -26px; }
  80%  { background-position: 42px 38px; }
  100% { background-position: 0 0; }
}

/* themed thin scrollbar + focus ring (selection is already red above) */
html { scrollbar-width: thin; scrollbar-color: #5a1712 #120607; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #120607; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7a1a14, #4a100c);
  border-radius: 8px; border: 2px solid #120607;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a12318, #641510); }
:focus-visible { outline: 2px solid rgba(255, 68, 51, .8); outline-offset: 3px; }

/* scroll progress: a red thread across the very top (absent in old browsers) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    html::before {
      content: ""; position: fixed; top: 0; left: 0; right: 0; height: 2px;
      z-index: 400; pointer-events: none;
      background: linear-gradient(90deg, var(--red), var(--red2), #ffb4ab);
      box-shadow: 0 0 12px var(--glow);
      transform-origin: 0 50%; scale: 0 1;
      animation: pgrow linear both; animation-timeline: scroll(root);
    }
  }
}
@keyframes pgrow { from { scale: 0 1; } to { scale: 1 1; } }

/* ---------------- nav · floating glass pill (the ABP nav, red-skinned) ---------------- */
.navwrap { position: sticky; top: 12px; z-index: 50; padding: 0 16px; }
#nav {
  display: flex; align-items: center; gap: 4px;
  max-width: 900px; margin: 0 auto;
  padding: 9px 10px 9px 18px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(46, 10, 10, .62), rgba(10, 4, 4, .58));
  border: 1px solid rgba(255, 68, 51, .22);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08),
              0 14px 38px rgba(0, 0, 0, .45), 0 0 30px rgba(224, 20, 20, .08);
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
#nav.slim {
  padding: 6px 8px 6px 16px;
  background: linear-gradient(160deg, rgba(38, 8, 8, .86), rgba(10, 4, 4, .84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06),
              0 10px 30px rgba(0, 0, 0, .55), 0 0 24px rgba(224, 20, 20, .10);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto;
  font-family: var(--nun); font-weight: 800; font-size: 1.02rem; letter-spacing: .01em; }
.brand img { border-radius: 50%; }   /* the ring is baked in the artwork — no CSS ring */
.brand b { color: var(--red2); font-weight: 900; }
/* icon links with glass tooltips (the ABP data-tip pattern) */
.nico {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  color: var(--mut);
  transition: color .2s ease, background .2s ease;
}
.nico:hover, .nico:focus-visible { color: var(--txt); background: rgba(255, 68, 51, .13); }
.nico svg {
  width: 19px; height: 19px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.nico::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translate(-50%, -4px);
  padding: 5px 11px; border-radius: 8px;
  background: rgba(10, 4, 4, .92);
  border: 1px solid rgba(255, 68, 51, .3);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
  color: var(--red2);
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.nico:hover::after, .nico:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .nico::after { display: none; } }
.ncta {
  margin-left: 8px;
  font-size: .85rem; font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
  background: var(--red); color: #fff;
  box-shadow: 0 4px 22px var(--glow);
  transition: transform .2s, box-shadow .2s;
}
.ncta:hover { transform: translateY(-1px); box-shadow: 0 6px 30px var(--glow); }

/* ---------------- hero · the dark act ---------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 90px 20px 110px;
  overflow: clip;
  background:
    radial-gradient(58% 42% at 50% 118%, rgba(224, 20, 20, .17), transparent 70%),
    radial-gradient(40% 30% at 82% -6%, rgba(224, 20, 20, .10), transparent 70%),
    var(--bg0);
}
.qa-flat .hero { min-height: 0; padding: 70px 20px 90px; }
.hero > * { position: relative; z-index: 2; }
.hero .aur, .hero .pxfield { z-index: 1; }

/* the showreel rides BEHIND the hero copy: full-bleed cover video with a
   dark red-tinted legibility overlay that fades into bg0 at the fold */
.hvideo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hvideo video { width: 100%; height: 100%; object-fit: cover; }
.hvideo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 4, 4, .78), rgba(10, 4, 4, .46) 36%,
      rgba(10, 4, 4, .58) 68%, var(--bg0) 100%),
    radial-gradient(72% 60% at 50% 52%, rgba(224, 20, 20, .16), transparent 76%);
}

.aur {
  position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
  opacity: .5;
  mix-blend-mode: screen;   /* ABP band treatment; red stays red, no hue drift */
}
.a1 { width: 480px; height: 380px; left: -140px; top: 8%;
  background: radial-gradient(circle at 40% 40%, rgba(224,20,20,.34), transparent 65%);
  animation: adrift 13s ease-in-out infinite alternate; }
.a2 { width: 520px; height: 420px; right: -160px; bottom: -4%;
  background: radial-gradient(circle at 60% 60%, rgba(160,10,10,.30), transparent 65%);
  animation: adrift 17s ease-in-out infinite alternate-reverse; }
@keyframes adrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, -30px, 0) scale(1.12); }
}

/* liquid pixel clusters (built by JS, deterministic pattern) */
.pxfield { position: absolute; inset: 0; pointer-events: none; }
.pxc { position: absolute; display: grid; gap: 2px; opacity: .8; }
.pxc i {
  width: 13px; height: 13px; border-radius: 2px;
  background: var(--red);
  opacity: 0;
  animation: pxblink 4.6s steps(2, jump-none) infinite;
}
@keyframes pxblink {
  0%, 64% { opacity: 0; }
  66%, 82% { opacity: var(--pxo, .5); }
  84%, 100% { opacity: 0; }
}

/* (hero floats, comet and orbit retired in the showreel-hero rework —
   the reel behind the copy carries the motion now) */

/* floating deco: square-pixel wireframes + a soft red orb, dark act only */
.deco { position: absolute; pointer-events: none; z-index: -1; }
.deco.dsquare {
  width: 52px; height: 52px; border-radius: 8px;
  border: 1.5px solid rgba(255, 68, 51, .35);
  rotate: 14deg;
}
.deco.dsquare::after {
  content: ""; position: absolute; right: -9px; bottom: -9px;
  width: 10px; height: 10px; border-radius: 2px;
  background: rgba(224, 20, 20, .55);
}
.deco.dorb {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 68, 51, .6), rgba(224, 20, 20, .18) 62%, transparent 76%);
  box-shadow: 0 0 26px rgba(224, 20, 20, .25);
}
.deco.dorb::after {
  content: ""; position: absolute; inset: 34% -30%;
  border: 1px solid rgba(255, 68, 51, .35);
  border-radius: 50%; transform: rotate(-16deg);
}
@media (prefers-reduced-motion: no-preference) {
  .deco { animation: decobob 9s ease-in-out infinite alternate; }
  .deco.dsquare { animation: decobob 9s ease-in-out infinite alternate,
                             decospin 40s linear infinite; }
}
.qa-flat .deco { animation: none; }
@keyframes decobob { to { translate: 0 -18px; } }
@keyframes decospin { from { rotate: 14deg; } to { rotate: 374deg; } }

.kick {
  display: inline-block;
  font-family: var(--nun); font-style: italic;   /* Nunito italic: the accent voice */
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red2);
  border: 1px solid rgba(255, 68, 51, .35);
  background: rgba(10, 4, 4, .35);
  padding: 8px 16px; border-radius: 999px;
  margin-bottom: 26px;
}
#heroTitle {
  font-family: var(--nun); font-weight: 900;
  font-size: clamp(2.7rem, 7.4vw, 5.4rem);
  line-height: 1.04; letter-spacing: -.015em;
  margin-bottom: 22px;
  text-shadow: 0 2px 34px rgba(10, 4, 4, .65);   /* legibility over the reel */
}
#heroTitle span.l1, #heroTitle span.l2 { display: block; }
#heroTitle .chw { display: inline-block; white-space: nowrap; }   /* a word never splits */
#heroTitle .ch { display: inline-block; transform: translateY(1.1em); opacity: 0;
  transition: transform .7s cubic-bezier(.2, .9, .2, 1), opacity .5s; }
#heroTitle.on .ch { transform: translateY(0); opacity: 1; }
/* kinetic word: SOLID fill + glow. Never background-clip text on an
   animating element inside a transformed ancestor (the ghost word bug). */
.kw { color: var(--red2); text-shadow: 0 0 34px var(--glow); white-space: nowrap; }
.kw.swap { animation: kwswap .52s ease; }
@keyframes kwswap {
  0%   { opacity: 1; transform: translateY(0); }
  45%  { opacity: 0; transform: translateY(.5em); }
  55%  { opacity: 0; transform: translateY(-.5em); }
  100% { opacity: 1; transform: translateY(0); }
}
.lead { max-width: 560px; color: var(--txt); opacity: .82; font-weight: 300;
  font-size: 1.02rem; margin-bottom: 34px;
  text-shadow: 0 1px 18px rgba(10, 4, 4, .7); }   /* Inter 300 + shadow over the reel */
.ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn.red { background: var(--red); color: #fff; box-shadow: 0 6px 30px var(--glow); }
.btn.red:hover { transform: translateY(-2px); box-shadow: 0 10px 40px var(--glow); }
.btn.ghost { border: 1px solid var(--line); color: var(--txt); background: rgba(255,255,255,.03); }
.btn.ghost:hover { background: rgba(255, 255, 255, .07); transform: translateY(-2px); }
/* sheen sweep + press state: the ABP pill language, red-skinned */
.btn, .ncta { position: relative; overflow: hidden; }
.btn::after, .ncta::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); transition: left .5s ease;
  pointer-events: none;
}
.btn:hover::after, .ncta:hover::after { left: 130%; }
.btn.ghost::after { background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .22), transparent); }
.btn:active, .ncta:active { transform: translateY(0) scale(.97); }
/* static gradient word inside the lead: safe — never animated on its own,
   and its ancestor ends at transform:none once the reveal lands */
.redword {
  background: linear-gradient(90deg, var(--red), var(--red2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 600;
}
/* red-metal heading skin (Nour's gold metal, re-forged red). STATIC text
   only — never on split or kinetic words (gradient clip + motion smears). */
.metal {
  background: linear-gradient(180deg, #ffd9d4 0%, var(--red2) 30%, #6e1410 52%, var(--red) 70%, #ffb4ab 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* weight contrast inside H2s: Nunito italic 600 against the 900 base */
.soft { font-style: italic; font-weight: 600; }

/* ---------------- trust strip · honest, page-derived items only ---------------- */
.truststrip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 22px;
  padding: 16px 20px 18px;
  font-size: .82rem; letter-spacing: .05em; color: var(--mut);
}
.truststrip b { font-family: var(--nun); font-weight: 900; font-size: .98rem;
  color: var(--txt); margin-right: 2px; }
.truststrip .tstar { color: var(--red2); font-size: .8rem; }
.truststrip i { font-style: normal; font-size: .68rem; color: var(--red2); opacity: .65; }


/* ---------------- sections ---------------- */
.sec { position: relative; padding: 110px 24px; max-width: 1060px; margin: 0 auto; text-align: center; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red2); margin-bottom: 14px;
}
.sec h2 {
  font-family: var(--nun); font-weight: 900;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  letter-spacing: -.01em; margin-bottom: 14px;
}
.scopy { max-width: 520px; margin: 0 auto 44px; color: var(--mut); }

/* ghost words: giant outlined Nunito behind each section heading
   (class is .gword, NOT .ghost — .btn.ghost already owns that word) */
.gword {
  position: absolute; top: 34px; left: 50%; z-index: -1;
  transform: translateX(-50%);
  font-family: var(--nun); font-weight: 900;
  font-size: clamp(56px, 12vw, 150px);
  line-height: 1; letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 68, 51, .13);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.light .gword { -webkit-text-stroke: 1.5px rgba(25, 10, 11, .09); }
/* 03's ghost word is the longest (THUMBNAILS, 10 letters): below ~470px the
   56px floor made it overrun a phone by 15px a side, so this one word may
   shrink to 40px. Wider screens get the same size as every other word. */
#folder .gword { font-size: clamp(40px, 12vw, 150px); }
/* scroll drift for the ghosts (progressive: scroll timelines only;
   `translate` composes with the centering transform above) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .gword { animation: ghostdrift linear both; animation-timeline: view(); }
  }
}
@keyframes ghostdrift { from { translate: 0 70px; } to { translate: 0 -80px; } }

/* nebula: red gas blobs breathing behind the dark sections */
.nebula {
  position: absolute; width: var(--nb, 520px); height: var(--nb, 520px);
  pointer-events: none; z-index: -2; border-radius: 50%;
  background:
    radial-gradient(42% 50% at 34% 40%, rgba(224, 20, 20, .20), transparent 70%),
    radial-gradient(46% 42% at 66% 56%, rgba(255, 68, 51, .14), transparent 72%),
    radial-gradient(36% 46% at 56% 30%, rgba(255, 154, 102, .08), transparent 70%),
    radial-gradient(52% 52% at 48% 66%, rgba(160, 10, 10, .16), transparent 72%);
  filter: blur(42px); opacity: .62;
}
@media (prefers-reduced-motion: no-preference) {
  .nebula { animation: nebuladrift 28s ease-in-out infinite alternate; }
}
.qa-flat .nebula { animation: none; }
@keyframes nebuladrift { to { transform: translate(26px, -20px) scale(1.09) rotate(8deg); } }

/* click divider: thin red thread with a traveling ✦ */
.clickline {
  position: relative; height: 2px;
  max-width: min(900px, 86vw); margin: 0 auto;
  background: linear-gradient(90deg,
    transparent, rgba(224, 20, 20, .35) 28%,
    rgba(255, 68, 51, .6) 50%,
    rgba(224, 20, 20, .35) 72%, transparent);
}
.clickline::before {
  content: "✦"; position: absolute; left: 12%; top: 50%;
  translate: -50% -50%;
  font-size: 14px; line-height: 1; color: var(--red2);
  text-shadow: 0 0 14px var(--glow), 0 0 30px var(--glow);
}
@media (prefers-reduced-motion: no-preference) {
  .clickline::before { animation: clicktravel 8s ease-in-out infinite alternate; }
}
.qa-flat .clickline::before { animation: none; left: 50%; }
@keyframes clicktravel { to { left: 88%; } }

/* section zones: soft full-bleed washes, one hue band per section of the
   dark act (the scroll-driven scene shift's CSS half — embers do the rest) */
#spotlight::before, #folder::before,
#versions::before, #process::before {
  content: ""; position: absolute; inset: 0 -50vw; z-index: -3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
#spotlight::before {
  background: radial-gradient(55% 55% at 50% 24%, rgba(255, 154, 102, .05), transparent 70%);
}
#folder::before {
  background: radial-gradient(60% 55% at 50% 30%, rgba(224, 20, 20, .05), transparent 70%);
}
#versions::before {
  background: radial-gradient(58% 52% at 50% 30%, rgba(255, 68, 51, .06), transparent 72%);
}
#process::before {
  background: radial-gradient(50% 70% at 50% 45%, rgba(255, 68, 51, .06), transparent 70%);
}

/* dawn band: the dark act cools into the paper act through a warm horizon
   instead of slamming straight to white */
.dawn {
  height: 220px; margin-bottom: -150px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent,
    rgba(224, 20, 20, .05) 38%,
    rgba(255, 154, 102, .07) 68%,
    rgba(247, 241, 239, .12) 100%);
}

/* sections breathe in (progressive; dark act only, the paper flip and the
   sticky nav are untouched — no sticky content lives in these sections) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main > .sec {
      animation: secin linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    .qa-flat main > .sec { animation: none; }
  }
}
@keyframes secin { from { scale: .972; opacity: .55; } to { scale: 1; opacity: 1; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
/* QA flag: reveals land instantly so frozen captures never catch them mid-flight */
.qa-flat .reveal { opacity: 1; transform: none; transition: none; }
/* sibling stagger for card rows */
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* split headings: H2 letters rise from behind per-word masks. The hero H1
   keeps its own char reveal; the kinetic word is never split. */
.splitr.reveal { opacity: 1; transform: none; }   /* the letters carry the motion */
.splitr .sw { display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: 0 .04em; margin: 0 -.04em; }
.splitr .sl { display: inline-block; transform: translateY(118%);
  transition: transform .65s cubic-bezier(.2, .9, .2, 1); }
.splitr.in .sl { transform: none; }

/* word-spring headings: whole words pop in with an overshoot stagger.
   JS only splits when motion is allowed, so reduce/qa-flat stay static. */
.wspring.reveal { opacity: 1; transform: none; }   /* the words carry the motion */
.wspring .wsw { display: inline-block; opacity: 0;
  transform: translateY(.62em) scale(.85);
  transition: transform .6s cubic-bezier(.34, 1.56, .44, 1), opacity .3s ease; }
.wspring.in .wsw { opacity: 1; transform: none; }

/* blur-focus rise (#folder): a one-shot entrance that SETTLES at
   transform:none / filter:none — the metal gradient itself never animates */
@media (prefers-reduced-motion: no-preference) {
  .fx-blur.reveal { opacity: 0; transform: translateY(30px); filter: blur(14px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .9, .2, 1), filter .8s ease; }
  .fx-blur.reveal.in { opacity: 1; transform: none; filter: none; }
}
.qa-flat .fx-blur.reveal { opacity: 1; transform: none; filter: none; transition: none; }

/* clip-wipe reveal (#vs): pure clip-path — no transform, no filter, so the
   metal gradient stays pinned while the wipe uncovers it */
@media (prefers-reduced-motion: no-preference) {
  .fx-wipe.reveal { opacity: 1; transform: none;
    clip-path: inset(-4% 104% -4% -4%);
    transition: clip-path .9s cubic-bezier(.2, .9, .2, 1); }
  .fx-wipe.reveal.in { clip-path: inset(-4% -4% -4% -4%); }
}
.qa-flat .fx-wipe.reveal { opacity: 1; transform: none; clip-path: none; transition: none; }

/* ---------------- spotlight carousel · center-focus, infinite wrap ---------------- */
.carr {
  position: relative;
  width: min(920px, 96vw);
  aspect-ratio: 50 / 19;          /* center card 54% wide · 16:9 + breathing room */
  margin: 0 auto;
  perspective: 1200px;            /* the center-card tilt reads in 3D */
  cursor: grab;
  touch-action: pan-y;            /* horizontal drags slide, vertical still scrolls */
  outline-offset: 8px;
}
.carr.grabbing { cursor: grabbing; }
.carcard {
  position: absolute; left: 50%; top: 50%;
  width: 54%; aspect-ratio: 16/9;
  margin: -15.1875% 0 0 -27%;     /* percent margins resolve against width */
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 68, 51, .30);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  background: #120607;
  will-change: transform, opacity;
  pointer-events: none;           /* the stage owns drag + click routing */
}
.carcard img { width: 100%; height: 100%; object-fit: cover; }
.carbtn {
  position: absolute; top: 50%; z-index: 40; translate: 0 -50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255, 68, 51, .4);
  background: rgba(10, 4, 4, .72); color: var(--txt);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--int); font-size: 1.35rem; line-height: 1; cursor: pointer;
  transition: background .2s, border-color .2s, scale .2s;
}
.carbtn:hover { background: rgba(224, 20, 20, .3); border-color: var(--red2); scale: 1.08; }
.carbtn:active { scale: .95; }
.carprev { left: calc(23% - 23px); }
.carnext { right: calc(23% - 23px); }
/* scroll-coupled breathing: the block scales .92 → 1 entering the viewport
   and eases back out leaving (progressive; static under reduced motion) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .carr { animation: carbreathe linear both; animation-timeline: view();
      animation-range: entry 0% exit 100%; }
    .qa-flat .carr { animation: none; }
  }
}
@keyframes carbreathe {
  0% { scale: .92; } 30% { scale: 1; } 70% { scale: 1; } 100% { scale: .92; }
}
@media (max-width: 620px) {
  .carcard { width: 74%; margin: -20.8% 0 0 -37%; }
  .carr { aspect-ratio: 50 / 25; }
  .carbtn { width: 38px; height: 38px; font-size: 1.1rem; }
  .carprev { left: 4px; }
  .carnext { right: 4px; }
}

/* ---------------- folder gallery · clickable work grid ---------------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ftile {
  position: relative; display: block; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #120607; cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ftile img {
  display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover;
  transition: scale .35s ease;
}
.ftile:hover { transform: translateY(-4px); border-color: rgba(255, 68, 51, .6);
  box-shadow: 0 14px 44px rgba(224, 20, 20, .16); }
.ftile:hover img { scale: 1.05; }
.ftile:active { transform: translateY(-1px); }
.fmore { display: none; }               /* tiles past 12 wait for the expander */
.fgrid.open .fmore { display: block; }
.qa-flat .fmore { display: block; }     /* full-page captures see the whole folder */
.fexpand { margin-top: 26px; font-family: var(--int); cursor: pointer; }
.qa-flat .fexpand { display: none; }

/* the lightbox: dark room, 1280px print, pixel-red frame */
.lbx {
  position: fixed; inset: 0; z-index: 260;   /* above chrome, below the cursor (300) */
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 4, 4, .93);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lbx[hidden] { display: none; }
.lbx figure { margin: 0; position: relative; }
.lbx img {
  display: block; max-width: min(1280px, 92vw); max-height: 80vh;
  width: auto; height: auto; border-radius: 14px;
  border: 1px solid rgba(255, 68, 51, .3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 60px rgba(224, 20, 20, .18);
}
@media (prefers-reduced-motion: no-preference) {
  .lbx img { animation: lbxin .28s ease; }
}
@keyframes lbxin { from { opacity: 0; scale: .96; } }
.lbx-cap {
  position: absolute; left: 0; right: 0; bottom: -34px; text-align: center;
  font-size: .8rem; color: var(--mut); letter-spacing: .08em;
}
.lbx-btn {
  position: absolute; z-index: 2; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255, 68, 51, .4);
  background: rgba(10, 4, 4, .7); color: var(--txt);
  font-family: var(--int); font-size: 1.2rem; line-height: 1; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.lbx-btn:hover { background: rgba(224, 20, 20, .25); border-color: var(--red2); transform: scale(1.06); }
.lbx-close { top: 20px; right: 20px; }
.lbx-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lbx-next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 620px) {
  .lbx-prev { left: 8px; }
  .lbx-next { right: 8px; }
  .lbx img { max-width: 96vw; }
}

/* ---------------- before/after wipe · where it started, where it landed ---------------- */
.wipes { display: grid; gap: 34px; max-width: 760px; margin: 0 auto; }
.wunit { margin: 0; }
.wipe {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 68, 51, .3);
  background: #120607;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  touch-action: pan-y;
}
.wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wB { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--wp, 50%)); }
/* the pair's labels sit above the frame, never on the artwork's own title */
.wlabels { display: flex; justify-content: space-between; margin-bottom: 9px; }
.wchip {
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--int); font-weight: 800; font-size: .72rem; letter-spacing: .1em;
  background: rgba(10, 4, 4, .72); color: var(--txt);
  border: 1px solid rgba(255, 68, 51, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.wchip.wr { color: var(--red2); border-color: rgba(255, 68, 51, .6); }
.wline {
  position: absolute; top: 0; bottom: 0; left: var(--wp, 50%); z-index: 2;
  width: 2px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 68, 51, .2), var(--red2), rgba(255, 68, 51, .2));
  box-shadow: 0 0 14px var(--glow);
}
.whandle {
  position: absolute; top: 50%; left: var(--wp, 50%); z-index: 4;
  translate: -50% -50%;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 68, 51, .55);
  background: rgba(10, 4, 4, .78); color: var(--txt);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--int); font-size: 1.05rem; line-height: 1;
  cursor: ew-resize; touch-action: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.whandle:hover, .whandle:focus-visible {
  background: rgba(224, 20, 20, .32); border-color: var(--red2);
  box-shadow: 0 0 22px var(--glow);
}
.wcap { display: block; margin-top: 10px; font-size: .78rem; letter-spacing: .08em;
  color: var(--mut); }

/* ---------------- process steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.step {
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px;
  background: linear-gradient(170deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(255, 68, 51, .4);
  box-shadow: 0 0 26px rgba(224, 20, 20, .16), 0 16px 44px rgba(0, 0, 0, .35); }
.step:active { transform: translateY(-1px) scale(.99); }
.step i {
  font-style: normal; font-family: var(--nun); font-weight: 900; font-size: 1rem;
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--red); color: #fff;
  box-shadow: 0 4px 18px var(--glow); margin-bottom: 14px;
}
.step b { display: block; font-family: var(--nun); font-weight: 800; font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--mut); }

/* ---------------- pain cards · "Is this your channel?" ---------------- */
.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.pcard {
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px;
  background: linear-gradient(170deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.pcard:hover { transform: translateY(-4px); border-color: rgba(255, 68, 51, .4);
  box-shadow: 0 0 26px rgba(224, 20, 20, .14), 0 14px 40px rgba(0, 0, 0, .3); }
.pcard p { font-size: .92rem; font-weight: 500; }
.painkick, .vskick { margin-top: 28px; color: var(--mut); font-size: .98rem;
  font-style: italic; }   /* accent lines speak in the italic voice */

/* ---------------- stat strip (honest, page-derived numbers) ---------------- */
.statstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 54px; }
.stat {
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 12px;
  background: linear-gradient(170deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.snum {
  display: block; font-family: var(--nun); font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.1;
  color: var(--red2); text-shadow: 0 0 30px var(--glow);
}
.stat span { font-size: .78rem; color: var(--mut); letter-spacing: .04em; }

/* ---------------- comparison columns · any vs Achraf ---------------- */
.vsgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  max-width: 760px; margin: 0 auto; text-align: left; }
.vscol {
  border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  background: linear-gradient(170deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}
.vscol b { display: block; font-family: var(--nun); font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.vscol ul { list-style: none; }
.vscol li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--mut); margin-bottom: 10px; }
.vscol li:last-child { margin-bottom: 0; }
.vscol li::before { position: absolute; left: 0; }
.vsl { opacity: .72; }
.vsl li::before { content: "✕"; color: rgba(224, 20, 20, .55); }
.vsr { border-color: rgba(255, 68, 51, .35); box-shadow: 0 0 30px rgba(224, 20, 20, .10); }
.vsr li::before { content: "✦"; color: var(--red2); }

/* ---------------- the light act ---------------- */
.light {
  position: relative; z-index: 0;   /* own stacking context: the paper paints under its ghosts */
  background: var(--paper); color: var(--ink);
  border-radius: 34px 34px 0 0;
  margin-top: 40px;
  box-shadow: 0 -30px 80px rgba(224, 20, 20, .10);
}
.light .eyebrow { color: var(--red); }
.light .scopy, .light .csub { color: rgba(25, 10, 11, .6); }

/* meet the designer */
.mport { margin: 0 auto 18px; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--red), 0 12px 40px var(--glow); }
#meet .scopy { margin-bottom: 0; }

/* faq accordion: native details, paper-card skin */
.faqs { max-width: 640px; margin: 0 auto; text-align: left; display: grid; gap: 12px; }
.faqs details {
  background: #fff; border-radius: 18px; padding: 18px 22px;
  border: 1px solid rgba(25, 10, 11, .05);
  box-shadow: 0 10px 34px rgba(25, 10, 11, .07);
}
.faqs summary {
  cursor: pointer; list-style: none; position: relative; padding-left: 26px;
  font-family: var(--nun); font-weight: 800; font-size: 1rem;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::before { content: "✦"; position: absolute; left: 0; color: var(--red);
  transition: rotate .3s ease; }
.faqs details[open] summary::before { rotate: 90deg; }
.faqs details p { margin-top: 10px; padding-left: 26px;
  color: rgba(25, 10, 11, .62); font-size: .92rem; }

/* the what-you-get checklist card (contact) */
.ckcard {
  max-width: 520px; margin: 0 auto 30px; text-align: left;
  background: #fff; border-radius: 22px; padding: 22px 26px;
  box-shadow: 0 14px 44px rgba(25, 10, 11, .08);
}
.ckcard b { display: block; font-family: var(--nun); font-weight: 800; margin-bottom: 10px; }
.ckcard ul { list-style: none; }
.ckcard li { position: relative; padding-left: 24px; font-size: .92rem;
  color: rgba(25, 10, 11, .68); margin-bottom: 8px; }
.ckcard li:last-child { margin-bottom: 0; }
.ckcard li::before { content: "✦"; position: absolute; left: 0; color: var(--red); }

/* contact */
.contact .cavatar { margin: 0 auto 18px; border-radius: 50%; }
.contact h2 { margin-bottom: 6px; }
.csub { margin-bottom: 30px; font-style: italic; }
/* the project form: a proper paper card, still the mailto flow underneath */
.cform {
  max-width: 520px; margin: 0 auto; text-align: left;
  background: #fff; border-radius: 22px; padding: 24px 26px;
  box-shadow: 0 14px 44px rgba(25, 10, 11, .10);
}
.cfrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform label { display: block; margin-bottom: 14px; }
.cform label span {
  display: block; margin-bottom: 6px;
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(25, 10, 11, .5);
}
.cform input, .cform textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(25, 10, 11, .14);
  background: #fff; color: var(--ink);
  font-family: var(--int); font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cform textarea { resize: vertical; min-height: 96px; }
.cform input::placeholder, .cform textarea::placeholder { color: rgba(25, 10, 11, .38); }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--red2);
  box-shadow: 0 0 0 3px rgba(224, 20, 20, .10); }
.cform label.bad input, .cform label.bad textarea {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 20, 20, .14);
}
@media (prefers-reduced-motion: no-preference) {
  .cform label.bad { animation: cfshake .3s ease; }
}
@keyframes cfshake {
  0%, 100% { translate: 0 0; } 25% { translate: -5px 0; } 75% { translate: 5px 0; }
}
.cfsend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cfnote { margin: 0; font-size: .88rem; font-weight: 600; color: var(--red); }
@media (max-width: 620px) { .cfrow { grid-template-columns: 1fr; gap: 0; } }

/* footer */
footer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  max-width: 1060px; margin: 0 auto; padding: 30px 24px 40px;
  border-top: 1px solid rgba(25, 10, 11, .08);
  flex-wrap: wrap;
}
.flock { display: flex; align-items: center; gap: 9px;
  font-family: var(--nun); font-weight: 800; }
.flock img { border-radius: 50%; }
.flock b { color: var(--red); font-weight: 900; }
.fnote { font-size: .82rem; color: rgba(25, 10, 11, .5); }
.fnav { display: flex; gap: 16px; flex-wrap: wrap; }
.fnav a { font-size: .85rem; font-weight: 600; color: rgba(25, 10, 11, .55); transition: color .2s; }
.fnav a:hover { color: var(--red); }

/* ---------------- dot rail · section nav (the ABP rail) ---------------- */
.rail {
  position: fixed; right: 18px; top: 50%;
  translate: 0 -50%; z-index: 60;
  display: flex; flex-direction: column; gap: 13px;
}
.rdot {
  position: relative; width: 9px; height: 9px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 68, 51, .5);
  background: transparent; cursor: pointer;
  transition: background .25s ease, box-shadow .25s ease, scale .25s ease;
}
.rdot:hover { background: rgba(255, 68, 51, .4); }
.rdot.on { background: var(--red); border-color: var(--red2);
  box-shadow: 0 0 12px var(--glow); scale: 1.35; }
.rdot::after {
  content: attr(data-label);
  position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  font-family: var(--int); font-size: .72rem; font-weight: 600;
  letter-spacing: .04em; white-space: nowrap;
  color: var(--txt); background: rgba(10, 4, 4, .85);
  border: 1px solid rgba(255, 68, 51, .3);
  padding: 4px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, translate .2s ease;
}
.rdot:hover::after { opacity: 1; translate: -4px -50%; }
.qa-flat .rail { display: none; }
@media (max-width: 860px), (pointer: coarse) { .rail { display: none; } }

/* ---------------- sticky CTA bar (the ABP buybar, red-skinned) ---------------- */
.ctabar {
  position: fixed; left: 50%; bottom: 18px; z-index: 90;
  transform: translate(-50%, 150%);
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(10, 4, 4, .82);
  border: 1px solid rgba(255, 68, 51, .28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(224, 20, 20, .12);
  transition: transform .45s cubic-bezier(.2, .9, .25, 1);
}
.ctabar.show { transform: translate(-50%, 0); }
.qa-flat .ctabar { display: none; }
.cbrand { display: flex; align-items: center; gap: 8px;
  font-family: var(--nun); font-weight: 800; font-size: .92rem; color: var(--txt); }
.cbrand img { border-radius: 50%; }
.cbrand b { color: var(--red2); font-weight: 900; }
.ctabar .btn.red { padding: 10px 20px; font-size: .88rem; }
/* phones: the bar used to be wider than the screen, so the button wrapped
   onto three lines and sat on the name. One line each, a tighter bar, and
   on the narrowest screens the portrait alone stands for the name. */
.ctabar { max-width: calc(100vw - 20px); }
.cbrand, .ctabar .btn.red { white-space: nowrap; }
@media (max-width: 480px) {
  .ctabar { gap: 10px; padding: 6px 6px 6px 12px; bottom: 12px; }
  .cbrand { font-size: .84rem; gap: 6px; }
  .ctabar .btn.red { padding: 11px 14px; font-size: .82rem; }
}
@media (max-width: 350px) {
  .cbrand { font-size: 0; gap: 0; }
}

/* ---------------- custom cursor · the Achraf skin ---------------- */
/* red dot rides the pointer, the liquid ring trails it; both are pure
   decor (pointer-events none) and only exist on fine pointers */
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 300;
  pointer-events: none; display: none; }
body.curon .cur-dot, body.curon .cur-ring { display: block; }
body.curon.cur-off .cur-dot, body.curon.cur-off .cur-ring { display: none; }
.cur-dot::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red2); translate: -50% -50%;
  box-shadow: 0 0 14px var(--glow);
}
.cur-ring::after {
  content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(255, 68, 51, .6); translate: -50% -50%;
  background: rgba(224, 20, 20, 0);
  transition: width .18s ease, height .18s ease, border-color .18s, background-color .18s;
}
.cur-ring.on-link::after { width: 50px; height: 50px;
  border-color: var(--red2); background: rgba(224, 20, 20, .08); }
.cur-ring.on-grab::after { width: 24px; height: 24px; border-color: #fff; }
@media (pointer: fine) {
  body.curon, body.curon a, body.curon button, body.curon summary,
  body.curon .carr, body.curon .whandle { cursor: none; }
  body.curon.cur-off, body.curon.cur-off * { cursor: auto; }
}

/* ---------------- reduced motion: the dark act holds still ---------------- */
/* (every NEW system is gated at source; these silence the legacy loops) */
@media (prefers-reduced-motion: reduce) {
  .aur { animation: none; }
  .pxc i { animation: none; opacity: var(--pxo, .5); }
  .ftile img { transition: none; }   /* no zoom creep in the folder grid */
}

/* ---------------- phone ---------------- */
@media (max-width: 860px) {
  .steps, .pains, .statstrip { grid-template-columns: repeat(2, 1fr); }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .vsgrid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .steps, .pains { grid-template-columns: 1fr; }
  .sec { padding: 80px 18px; }
}
@media (max-width: 560px) {
  .navwrap { top: 8px; padding: 0 10px; }
  #nav { flex-wrap: nowrap; gap: 2px; padding: 7px 8px 7px 12px; }
  .brand { font-size: .9rem; margin-right: auto; }
  .brand span { white-space: nowrap; }
  .nico { width: 36px; height: 36px; }
  .ncta { display: none; }
  .lead { font-size: .95rem; }
}
